@Test(expected = TimeoutException.class)
public void startCoreServicesSynchronouslyWithTimeout() throws Throwable {

    setUp(false);
    // use reflection to shorten operation timeout value
    Field field = ServiceHost.class.getDeclaredField("state");
    field.setAccessible(true);
    ServiceHost.ServiceHostState state = (ServiceHostState) field.get(this.host);
    state.operationTimeoutMicros = TimeUnit.MILLISECONDS.toMicros(100);
    this.host.startCoreServicesSynchronously(new StatelessService() {
        @SuppressWarnings("unused")
        public static final String SELF_LINK = "/foo";
        @Override
        public void handleStart(Operation startPost) {
            // do not complete
        }
    });
}