MaxFragmentLengthExtensionHandler extends ExtensionHandler<MaxFragmentLengthExtensionMessage> { @Override public MaxFragmentLengthExtensionSerializer getSerializer(MaxFragmentLengthExtensionMessage message) { return new MaxFragmentLengthExtensionSerializer(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 testGetSerializer() { assertTrue(handler.getSerializer(new MaxFragmentLengthExtensionMessage()) instanceof MaxFragmentLengthExtensionSerializer); }