CiphersuiteDelegate extends Delegate { public List<CipherSuite> getCipherSuites() { if (cipherSuites == null) { return null; } return Collections.unmodifiableList(cipherSuites); } CiphersuiteDelegate(); List<CipherSuite> getCipherSuites(); void setCipherSuites(List<CipherSuite> cipherSuites); void setCipherSuites(CipherSuite... cipherSuites); @Override void applyDelegate(Config config);  }
@Test public void testGetCipherSuites() { args = new String[2]; args[0] = "-cipher"; args[1] = "TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA"; jcommander.parse(args); assertTrue("TLS_RSA_WITH_AES_128_CBC_SHA should get parsed correctly", delegate.getCipherSuites().contains(CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA)); assertTrue("TLS_RSA_WITH_AES_256_CBC_SHA should get parsed correctly", delegate.getCipherSuites().contains(CipherSuite.TLS_RSA_WITH_AES_256_CBC_SHA)); }