ClientAuthzExtensionParser extends ExtensionParser<ClientAuthzExtensionMessage> { @Override public void parseExtensionMessageContent(ClientAuthzExtensionMessage msg) { msg.setAuthzFormatListLength(parseIntField(ExtensionByteLength.CLIENT_AUTHZ_FORMAT_LIST_LENGTH)); msg.setAuthzFormatList(parseByteArrayField(msg.getAuthzFormatListLength().getValue())); } ClientAuthzExtensionParser(int startposition, byte[] array); @Override void parseExtensionMessageContent(ClientAuthzExtensionMessage msg);  }
@Test public void testParseExtensionMessageContent() { parser = new ClientAuthzExtensionParser(startParsing, expectedBytes); msg = parser.parse(); assertArrayEquals(extensionType.getValue(), msg.getExtensionType().getValue()); assertEquals(extensionLength, (long) msg.getExtensionLength().getValue()); assertEquals(authzFormatListLength, (long) msg.getAuthzFormatListLength().getValue()); assertArrayEquals(authzFormatList, msg.getAuthzFormatList().getValue()); }