ServerCertificateTypeExtensionHandler extends ExtensionHandler<ServerCertificateTypeExtensionMessage> { @Override public ServerCertificateTypeExtensionPreparator getPreparator(ServerCertificateTypeExtensionMessage message) { return new ServerCertificateTypeExtensionPreparator(context.getChooser(), message, getSerializer(message)); } ServerCertificateTypeExtensionHandler(TlsContext context); @Override ServerCertificateTypeExtensionParser getParser(byte[] message, int pointer); @Override ServerCertificateTypeExtensionPreparator getPreparator(ServerCertificateTypeExtensionMessage message); @Override ServerCertificateTypeExtensionSerializer getSerializer(ServerCertificateTypeExtensionMessage message); @Override void adjustTLSExtensionContext(ServerCertificateTypeExtensionMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new ServerCertificateTypeExtensionMessage()) instanceof ServerCertificateTypeExtensionPreparator); }