SignatureAndHashAlgorithmsExtensionParser extends
        ExtensionParser<SignatureAndHashAlgorithmsExtensionMessage> { @Override public void parseExtensionMessageContent(SignatureAndHashAlgorithmsExtensionMessage msg) { parseSignatureAndHashAlgorithmsLength(msg); parseSignatureAndHashAlgorithms(msg); } SignatureAndHashAlgorithmsExtensionParser(int startposition, byte[] array); @Override void parseExtensionMessageContent(SignatureAndHashAlgorithmsExtensionMessage msg);  }
@Test public void testParseExtensionMessageContent() { SignatureAndHashAlgorithmsExtensionParser parser = new SignatureAndHashAlgorithmsExtensionParser(start, extension); SignatureAndHashAlgorithmsExtensionMessage msg = parser.parse(); assertArrayEquals(msg.getExtensionBytes().getValue(), completeExtension); assertArrayEquals(type.getValue(), msg.getExtensionType().getValue()); assertTrue(extensionLength == msg.getExtensionLength().getValue()); assertArrayEquals(msg.getSignatureAndHashAlgorithms().getValue(), algoList); assertTrue(algoListLength == msg.getSignatureAndHashAlgorithmsLength().getValue()); }