ClientDelegate extends Delegate { public String getHost() { return host; } ClientDelegate(); String getHost(); void setHost(String host); @Override void applyDelegate(Config config); String getSniHostname(); void setSniHostname(String sniHostname);  }
@Test public void testGetHost() { args = new String[2]; args[0] = "-connect"; args[1] = "127.0.1.1"; assertTrue(delegate.getHost() == null); jcommander.parse(args); assertTrue(delegate.getHost().equals("127.0.1.1")); }