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