AlertHandler extends ProtocolMessageHandler<AlertMessage> { @Override public AlertPreparator getPreparator(AlertMessage message) { return new AlertPreparator(tlsContext.getChooser(), message); } AlertHandler(TlsContext tlsContext); @Override AlertParser getParser(byte[] message, int pointer); @Override AlertPreparator getPreparator(AlertMessage message); @Override AlertSerializer getSerializer(AlertMessage message); @Override void adjustTLSContext(AlertMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new AlertMessage()) instanceof AlertPreparator); }