EllipticCurvesExtensionHandler extends ExtensionHandler<EllipticCurvesExtensionMessage> { @Override public EllipticCurvesExtensionParser getParser(byte[] message, int pointer) { return new EllipticCurvesExtensionParser(pointer, 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 testGetParser() { assertTrue(handler.getParser(new byte[] { 1, 2 }, 0) instanceof EllipticCurvesExtensionParser); }