JvmAgentConfig extends JolokiaServerConfig { public boolean isModeStop() { return isStopMode; } JvmAgentConfig(String pArgs);  JvmAgentConfig(Map<String,String> pConfig); boolean isModeStop();  }
@Test public void simple() { JvmAgentConfig config = new JvmAgentConfig("port=4711,mode=stop"); assertEquals(config.getPort(), 4711); assertTrue(config.isModeStop()); assertEquals(config.getBacklog(), 10); }
@Test public void defaults() throws UnknownHostException { JvmAgentConfig config = new JvmAgentConfig(""); assertEquals(config.getAddress(), InetAddress.getByName(null)); assertFalse(config.isModeStop()); assertEquals(config.getProtocol(), "http"); assertEquals(config.getPort(), 8778); assertNull(config.getAuthenticator()); assertEquals(config.getBacklog(), 10); assertEquals(config.getContextPath(), "/jolokia/"); assertEquals(config.getExecutor(), "single"); assertEquals(config.getThreadNr(), 5); assertFalse(config.useSslClientAuthentication()); assertNull(config.getKeystore()); assertEquals(config.getKeystorePassword().length, 0); }