@Test
public void testBuildServiceConfig() {

    Service exampleService = new ExampleService();
    exampleService.setHost(VerificationHost.create());
    ServiceConfiguration config = new ServiceConfiguration();
    Utils.buildServiceConfig(config, exampleService);
    assertEquals(exampleService.getOptions(), config.options);
    assertEquals(exampleService.getMaintenanceIntervalMicros(), config.maintenanceIntervalMicros);
    assertEquals(ExampleServiceState.VERSION_RETENTION_LIMIT, config.versionRetentionLimit);
    assertEquals(ExampleServiceState.VERSION_RETENTION_FLOOR, config.versionRetentionFloor);
    assertEquals(exampleService.getPeerNodeSelectorPath(), config.peerNodeSelectorPath);
    assertEquals(exampleService.getDocumentIndexPath(), config.documentIndexPath);
}