CertificateTypeExtensionHandler extends ExtensionHandler<CertificateTypeExtensionMessage> { @Override public CertificateTypeExtensionPreparator getPreparator(CertificateTypeExtensionMessage message) { return new CertificateTypeExtensionPreparator(context.getChooser(), message, getSerializer(message)); } CertificateTypeExtensionHandler(TlsContext context); @Override CertificateTypeExtensionParser getParser(byte[] message, int pointer); @Override CertificateTypeExtensionPreparator getPreparator(CertificateTypeExtensionMessage message); @Override CertificateTypeExtensionSerializer getSerializer(CertificateTypeExtensionMessage message); @Override void adjustTLSExtensionContext(CertificateTypeExtensionMessage message);  }
@Test public void testGetPreparator() { assertTrue(handler.getPreparator(new CertificateTypeExtensionMessage()) instanceof CertificateTypeExtensionPreparator); }