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