HeartbeatMessageHandler extends ProtocolMessageHandler<HeartbeatMessage> { @Override public HeartbeatMessageParser getParser(byte[] message, int pointer) { return new HeartbeatMessageParser(pointer, message, tlsContext.getChooser().getLastRecordVersion(), tlsContext.getConfig()); } HeartbeatMessageHandler(TlsContext tlsContext); @Override HeartbeatMessageParser getParser(byte[] message, int pointer); @Override HeartbeatMessagePreparator getPreparator(HeartbeatMessage message); @Override HeartbeatMessageSerializer getSerializer(HeartbeatMessage message); @Override void adjustTLSContext(HeartbeatMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[1], 0) instanceof HeartbeatMessageParser); }