ExtendedMasterSecretExtensionHandler extends ExtensionHandler<ExtendedMasterSecretExtensionMessage> { @Override public ExtendedMasterSecretExtensionSerializer getSerializer(ExtendedMasterSecretExtensionMessage message) { return new ExtendedMasterSecretExtensionSerializer(message); } ExtendedMasterSecretExtensionHandler(TlsContext context); @Override ExtendedMasterSecretExtensionParser getParser(byte[] message, int pointer); @Override ExtendedMasterSecretExtensionPreparator getPreparator(ExtendedMasterSecretExtensionMessage message); @Override ExtendedMasterSecretExtensionSerializer getSerializer(ExtendedMasterSecretExtensionMessage message); @Override void adjustTLSExtensionContext(ExtendedMasterSecretExtensionMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new ExtendedMasterSecretExtensionMessage()) instanceof ExtendedMasterSecretExtensionSerializer); }