EllipticCurvesExtensionHandler extends ExtensionHandler<EllipticCurvesExtensionMessage> { @Override public EllipticCurvesExtensionPreparator getPreparator(EllipticCurvesExtensionMessage message) { return new EllipticCurvesExtensionPreparator(context.getChooser(), message, getSerializer(message)); } EllipticCurvesExtensionHandler(TlsContext context); @Override void adjustTLSExtensionContext(EllipticCurvesExtensionMessage message); @Override EllipticCurvesExtensionParser getParser(byte[] message, int pointer); @Override EllipticCurvesExtensionPreparator getPreparator(EllipticCurvesExtensionMessage message); @Override EllipticCurvesExtensionSerializer getSerializer(EllipticCurvesExtensionMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new EllipticCurvesExtensionMessage()) instanceof EllipticCurvesExtensionPreparator); }