ProtocolVersionDelegate extends Delegate { public void setProtocolVersion(ProtocolVersion protocolVersion) { this.protocolVersion = protocolVersion; } ProtocolVersionDelegate(); ProtocolVersion getProtocolVersion(); void setProtocolVersion(ProtocolVersion protocolVersion); @Override void applyDelegate(Config config);  }
@Test public void testSetProtocolVersion() { delegate.setProtocolVersion(null); assertFalse(delegate.getProtocolVersion() == ProtocolVersion.TLS12); delegate.setProtocolVersion(ProtocolVersion.TLS12); assertTrue(delegate.getProtocolVersion() == ProtocolVersion.TLS12); }