SupportedVersionsExtensionHandler extends ExtensionHandler<SupportedVersionsExtensionMessage> { @Override public SupportedVersionsExtensionSerializer getSerializer(SupportedVersionsExtensionMessage message) { return new SupportedVersionsExtensionSerializer(message); } SupportedVersionsExtensionHandler(TlsContext context); @Override SupportedVersionsExtensionParser getParser(byte[] message, int pointer); @Override SupportedVersionsExtensionPreparator getPreparator(SupportedVersionsExtensionMessage message); @Override SupportedVersionsExtensionSerializer getSerializer(SupportedVersionsExtensionMessage message); @Override void adjustTLSExtensionContext(SupportedVersionsExtensionMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new SupportedVersionsExtensionMessage()) instanceof SupportedVersionsExtensionSerializer); }