MaxFragmentLengthExtensionHandler extends ExtensionHandler<MaxFragmentLengthExtensionMessage> { @Override public MaxFragmentLengthExtensionParser getParser(byte[] message, int pointer) { return new MaxFragmentLengthExtensionParser(pointer, message); } MaxFragmentLengthExtensionHandler(TlsContext context); @Override void adjustTLSExtensionContext(MaxFragmentLengthExtensionMessage message); @Override MaxFragmentLengthExtensionParser getParser(byte[] message, int pointer); @Override MaxFragmentLengthExtensionPreparator getPreparator(MaxFragmentLengthExtensionMessage message); @Override MaxFragmentLengthExtensionSerializer getSerializer(MaxFragmentLengthExtensionMessage message);  }
@Test public void testGetParser() { assertTrue(handler.getParser(new byte[] { 0, 1, 2, 3 }, 0) instanceof MaxFragmentLengthExtensionParser); }