SupportedVersionsExtensionHandler extends ExtensionHandler<SupportedVersionsExtensionMessage> { @Override public SupportedVersionsExtensionPreparator getPreparator(SupportedVersionsExtensionMessage message) { return new SupportedVersionsExtensionPreparator(context.getChooser(), message, getSerializer(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 testGetPreparator() { assertTrue(handler.getPreparator(new SupportedVersionsExtensionMessage()) instanceof SupportedVersionsExtensionPreparator); }