ExtendedRandomExtensionHandler extends ExtensionHandler<ExtendedRandomExtensionMessage> { @Override public ExtendedRandomExtensionPreparator getPreparator(ExtendedRandomExtensionMessage message) { return new ExtendedRandomExtensionPreparator(context.getChooser(), message, getSerializer(message)); } ExtendedRandomExtensionHandler(TlsContext context); @Override ExtendedRandomExtensionParser getParser(byte[] message, int pointer); @Override ExtendedRandomExtensionPreparator getPreparator(ExtendedRandomExtensionMessage message); @Override ExtendedRandomExtensionSerializer getSerializer(ExtendedRandomExtensionMessage message); @Override void adjustTLSExtensionContext(ExtendedRandomExtensionMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new ExtendedRandomExtensionMessage()) instanceof ExtendedRandomExtensionPreparator); }