@Test
public void validateServiceOption() {

    // positive tests
    EnumSet<ServiceOption> options = EnumSet.of(ServiceOption.REPLICATION,
            ServiceOption.OWNER_SELECTION);
    checkOptions(options);
    options = EnumSet.of(ServiceOption.REPLICATION, ServiceOption.OWNER_SELECTION,
            ServiceOption.INSTRUMENTATION, ServiceOption.PERIODIC_MAINTENANCE,
            ServiceOption.HTML_USER_INTERFACE);
    checkOptions(options);
    options = EnumSet.of(ServiceOption.REPLICATION, ServiceOption.STRICT_UPDATE_CHECKING);
    checkOptions(options);
    options = EnumSet.of(ServiceOption.REPLICATION, ServiceOption.STRICT_UPDATE_CHECKING,
            ServiceOption.OWNER_SELECTION);
    checkOptions(options);
    // negative tests
    options = EnumSet.of(ServiceOption.CONCURRENT_UPDATE_HANDLING,
            ServiceOption.STRICT_UPDATE_CHECKING);
    checkOptions(options, true);
    options = EnumSet.of(ServiceOption.REPLICATION,
            ServiceOption.URI_NAMESPACE_OWNER);
    checkOptions(options, true);
    options = EnumSet.of(ServiceOption.PERSISTENCE,
            ServiceOption.URI_NAMESPACE_OWNER);
    checkOptions(options, true);
    options = EnumSet.of(ServiceOption.OWNER_SELECTION, ServiceOption.REPLICATION,
            ServiceOption.CONCURRENT_UPDATE_HANDLING);
    checkOptions(options, true);
    options = EnumSet.of(ServiceOption.OWNER_SELECTION);
    checkOptions(options, true);
}