SessionTicketTlsExtensionHandler extends ExtensionHandler<SessionTicketTLSExtensionMessage> { @Override public SessionTicketTLSExtensionSerializer getSerializer(SessionTicketTLSExtensionMessage message) { return new SessionTicketTLSExtensionSerializer(message); } SessionTicketTlsExtensionHandler(TlsContext context); @Override SessionTicketTLSExtensionParser getParser(byte[] message, int pointer); @Override SessionTicketTLSExtensionPreparator getPreparator(SessionTicketTLSExtensionMessage message); @Override SessionTicketTLSExtensionSerializer getSerializer(SessionTicketTLSExtensionMessage message); @Override void adjustTLSExtensionContext(SessionTicketTLSExtensionMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new SessionTicketTLSExtensionMessage()) instanceof SessionTicketTLSExtensionSerializer); }