UnknownExtensionHandler extends ExtensionHandler<UnknownExtensionMessage> { @Override public UnknownExtensionPreparator getPreparator(UnknownExtensionMessage message) { return new UnknownExtensionPreparator(context.getChooser(), message, getSerializer(message)); } UnknownExtensionHandler(TlsContext context); @Override void adjustTLSExtensionContext(UnknownExtensionMessage message); @Override UnknownExtensionParser getParser(byte[] message, int pointer); @Override UnknownExtensionPreparator getPreparator(UnknownExtensionMessage message); @Override UnknownExtensionSerializer getSerializer(UnknownExtensionMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new UnknownExtensionMessage()) instanceof UnknownExtensionPreparator); }