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