UserMappingExtensionHandler extends ExtensionHandler<UserMappingExtensionMessage> { @Override public UserMappingExtensionSerializer getSerializer(UserMappingExtensionMessage message) { return new UserMappingExtensionSerializer(message); } UserMappingExtensionHandler(TlsContext context); @Override UserMappingExtensionParser getParser(byte[] message, int pointer); @Override UserMappingExtensionPreparator getPreparator(UserMappingExtensionMessage message); @Override UserMappingExtensionSerializer getSerializer(UserMappingExtensionMessage message); @Override void adjustTLSExtensionContext(UserMappingExtensionMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new UserMappingExtensionMessage()) instanceof UserMappingExtensionSerializer); }