UserMappingExtensionParser extends ExtensionParser<UserMappingExtensionMessage> { @Override public void parseExtensionMessageContent(UserMappingExtensionMessage msg) { msg.setUserMappingType(parseByteField(ExtensionByteLength.USER_MAPPING_MAPPINGTYPE)); LOGGER.debug("Parsed the user mapping extension with mapping hint type " + msg.getUserMappingType().getValue()); } UserMappingExtensionParser(int startposition, byte[] array); @Override void parseExtensionMessageContent(UserMappingExtensionMessage msg);  }
@Test public void testParseExtensionMessageContent() { message = parser.parse(); assertArrayEquals(extensionType.getValue(), message.getExtensionType().getValue()); assertEquals(extensionLength, (long) message.getExtensionLength().getValue()); assertEquals(hintType.getValue(), (long) message.getUserMappingType().getValue()); }