}
@Test
public void return_result_before_timeout_of_synchronous_migration() {
HttpRequestFactory requestFactory = mock(HttpRequestFactory.class);
when(requestFactory.post(eq("/api/server/setup"), anyMap())).thenReturn(
RUNNING_JSON, DONE_JSON
);
DefaultSystemClient client = new DefaultSystemClient(requestFactory);
Migration migration = client.migrate(500L, 5L);