ApplicationMessageHandler extends ProtocolMessageHandler<ApplicationMessage> { @Override public ApplicationMessagePreparator getPreparator(ApplicationMessage message) { return new ApplicationMessagePreparator(tlsContext.getChooser(), message); } ApplicationMessageHandler(TlsContext tlsContext); @Override ApplicationMessageParser getParser(byte[] message, int pointer); @Override ApplicationMessagePreparator getPreparator(ApplicationMessage message); @Override ApplicationMessageSerializer getSerializer(ApplicationMessage message); @Override void adjustTLSContext(ApplicationMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new ApplicationMessage()) instanceof ApplicationMessagePreparator); }