ApplicationMessageHandler extends ProtocolMessageHandler<ApplicationMessage> { @Override public ApplicationMessageParser getParser(byte[] message, int pointer) { return new ApplicationMessageParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), tlsContext.getConfig()); } 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 testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof ApplicationMessageParser); }