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