ExtendedMasterSecretExtensionParser extends ExtensionParser<ExtendedMasterSecretExtensionMessage> { @Override public void parseExtensionMessageContent(ExtendedMasterSecretExtensionMessage msg) { byte[] auxData = parseByteArrayField(msg.getExtensionLength().getValue()); if (auxData.length > 0) { LOGGER.warn("There shouldn't be any data in the body of" + " the extended master secret extension." + "Data send by server: " + ArrayConverter.bytesToHexString(auxData)); } } ExtendedMasterSecretExtensionParser(int startposition, byte[] array); @Override void parseExtensionMessageContent(ExtendedMasterSecretExtensionMessage msg);  }
@Test public void testParseExtensionMessageContent() { message = parser.parse(); assertArrayEquals(extensionType.getValue(), message.getExtensionType().getValue()); assertEquals(extensionLength, (long) message.getExtensionLength().getValue()); }