EllipticCurvesExtensionParser extends ExtensionParser<EllipticCurvesExtensionMessage> { @Override public void parseExtensionMessageContent(EllipticCurvesExtensionMessage msg) { LOGGER.debug("Parsing EllipticCurvesExtensionMessage"); parseSupportedGroupsLength(msg); parseSupportedGroups(msg); } EllipticCurvesExtensionParser(int startposition, byte[] array); @Override void parseExtensionMessageContent(EllipticCurvesExtensionMessage msg);  }
@Test public void testParseExtensionMessageContent() { EllipticCurvesExtensionParser parser = new EllipticCurvesExtensionParser(start, extension); EllipticCurvesExtensionMessage msg = parser.parse(); assertArrayEquals(msg.getExtensionBytes().getValue(), completeExtension); assertArrayEquals(type.getValue(), msg.getExtensionType().getValue()); assertTrue(extensionLength == msg.getExtensionLength().getValue()); assertArrayEquals(msg.getSupportedGroups().getValue(), curves); assertTrue(curvesLength == msg.getSupportedGroupsLength().getValue()); }