ServerNameIndicationExtensionHandler extends ExtensionHandler<ServerNameIndicationExtensionMessage> { @Override public ServerNameIndicationExtensionPreparator getPreparator(ServerNameIndicationExtensionMessage message) { return new ServerNameIndicationExtensionPreparator(context.getChooser(), message, getSerializer(message)); } ServerNameIndicationExtensionHandler(TlsContext context); @Override void adjustTLSExtensionContext(ServerNameIndicationExtensionMessage message); @Override ServerNameIndicationExtensionParser getParser(byte[] message, int pointer); @Override ServerNameIndicationExtensionPreparator getPreparator(ServerNameIndicationExtensionMessage message); @Override ServerNameIndicationExtensionSerializer getSerializer(ServerNameIndicationExtensionMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new ServerNameIndicationExtensionMessage()) instanceof ServerNameIndicationExtensionPreparator); }