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