ServerNameIndicationExtensionHandler extends ExtensionHandler<ServerNameIndicationExtensionMessage> { @Override public ServerNameIndicationExtensionParser getParser(byte[] message, int pointer) { return new ServerNameIndicationExtensionParser(pointer, 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 testGetParser() { assertTrue(handler.getParser(new byte[] { 0, 2, 3, }, 0) instanceof ServerNameIndicationExtensionParser); }