@Test
public void successNoDocuments() throws Throwable {

    // start migration with no data populated
    MigrationTaskService.State migrationState = validMigrationState(ExampleService.FACTORY_LINK);
    Operation post = Operation.createPost(this.destinationFactoryUri).setBody(migrationState);
    ServiceDocument taskState = this.sender.sendAndWait(post, ServiceDocument.class);
    State finalState = waitForServiceCompletion(taskState.documentSelfLink, getDestinationHost());
    assertEquals(TaskStage.FINISHED, finalState.taskInfo.stage);
    // verify stats
    ServiceStats stats = this.sender.sendStatsGetAndWait(UriUtils.buildUri(getDestinationHost(), taskState.documentSelfLink));
    assertFalse(stats.entries.containsKey(MigrationTaskService.STAT_NAME_PROCESSED_DOCUMENTS));
}