MaxFragmentLengthExtensionHandler extends ExtensionHandler<MaxFragmentLengthExtensionMessage> { @Override public MaxFragmentLengthExtensionPreparator getPreparator(MaxFragmentLengthExtensionMessage message) { return new MaxFragmentLengthExtensionPreparator(context.getChooser(), message, getSerializer(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 testGetPreparator() { assertTrue(handler.getPreparator(new MaxFragmentLengthExtensionMessage()) instanceof MaxFragmentLengthExtensionPreparator); }