ProtocolVersionDelegate extends Delegate { public ProtocolVersion getProtocolVersion() { return protocolVersion; } ProtocolVersionDelegate(); ProtocolVersion getProtocolVersion(); void setProtocolVersion(ProtocolVersion protocolVersion); @Override void applyDelegate(Config config);  }
@Test public void testGetProtocolVersion() { args = new String[2]; args[0] = "-version"; args[1] = "TLS12"; delegate.setProtocolVersion(null); assertFalse(delegate.getProtocolVersion() == ProtocolVersion.TLS12); jcommander.parse(args); assertTrue(delegate.getProtocolVersion() == ProtocolVersion.TLS12); }