SignatureAndHashAlgorithmDelegate extends Delegate { public void setSignatureAndHashAlgorithms(List<SignatureAndHashAlgorithm> signatureAndHashAlgorithms) { this.signatureAndHashAlgorithms = signatureAndHashAlgorithms; } SignatureAndHashAlgorithmDelegate(); List<SignatureAndHashAlgorithm> getSignatureAndHashAlgorithms(); void setSignatureAndHashAlgorithms(List<SignatureAndHashAlgorithm> signatureAndHashAlgorithms); @Override void applyDelegate(Config config);  }
@Test public void testSetSignatureAndHashAlgorithms() { List<SignatureAndHashAlgorithm> signatureAndHashAlgoList = new LinkedList<>(); signatureAndHashAlgoList.add(SignatureAndHashAlgorithm.ANONYMOUS_SHA1); delegate.setSignatureAndHashAlgorithms(signatureAndHashAlgoList); assertTrue(delegate.getSignatureAndHashAlgorithms().contains(SignatureAndHashAlgorithm.ANONYMOUS_SHA1)); }