ServerNameIndicationExtensionHandler extends ExtensionHandler<ServerNameIndicationExtensionMessage> { @Override public ServerNameIndicationExtensionSerializer getSerializer(ServerNameIndicationExtensionMessage message) { return new ServerNameIndicationExtensionSerializer(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 testGetSerializer() { assertTrue(handler.getSerializer(new ServerNameIndicationExtensionMessage()) instanceof ServerNameIndicationExtensionSerializer); }