### Question:
EngineIoServerOptions { public void lock() { mIsLocked = true; } private  EngineIoServerOptions(); static EngineIoServerOptions newFromDefault(); boolean isCorsHandlingDisabled(); EngineIoServerOptions setCorsHandlingDisabled(boolean corsHandlingDisabled); long getPingInterval(); EngineIoServerOptions setPingInterval(long pingInterval); long getPingTimeout(); EngineIoServerOptions setPingTimeout(long pingTimeout); String[] getAllowedCorsOrigins(); EngineIoServerOptions setAllowedCorsOrigins(String[] allowedCorsOrigins); Packet<?> getInitialPacket(); EngineIoServerOptions setInitialPacket(Packet<?> initialPacket); void lock(); int getMaxTimeoutThreadPoolSize(); EngineIoServerOptions setMaxTimeoutThreadPoolSize(int maxTimeoutThreadPoolSize); static final EngineIoServerOptions DEFAULT; static final String[] ALLOWED_CORS_ORIGIN_ALL; static final String[] ALLOWED_CORS_ORIGIN_NONE; }### Answer:
@Test(expected = IllegalStateException.class) public void testLock() { EngineIoServerOptions options = EngineIoServerOptions.newFromDefault(); options.setPingInterval(500); options.lock(); options.setPingTimeout(1000); }