HRRKeyShareExtensionParser extends ExtensionParser<HRRKeyShareExtensionMessage> { @Override public void parseExtensionMessageContent(HRRKeyShareExtensionMessage msg) { LOGGER.debug("Parsing KeyShareExtensionMessage"); parseSelectedGroup(msg); } HRRKeyShareExtensionParser(int startposition, byte[] array); @Override void parseExtensionMessageContent(HRRKeyShareExtensionMessage msg);  }
@Test public void testParseExtensionMessageContent() { HRRKeyShareExtensionParser parser = new HRRKeyShareExtensionParser(start, extension); HRRKeyShareExtensionMessage msg = parser.parse(); assertArrayEquals(msg.getExtensionBytes().getValue(), completeExtension); assertArrayEquals(type.getValue(), msg.getExtensionType().getValue()); assertTrue(extensionLength == msg.getExtensionLength().getValue()); assertArrayEquals(msg.getSelectedGroup().getValue(), selectedGroup); }