UserMappingExtensionHandler extends ExtensionHandler<UserMappingExtensionMessage> { @Override public UserMappingExtensionPreparator getPreparator(UserMappingExtensionMessage message) { return new UserMappingExtensionPreparator(context.getChooser(), message, getSerializer(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 testGetPreparator() { assertTrue(handler.getPreparator(new UserMappingExtensionMessage()) instanceof UserMappingExtensionPreparator); }