EncryptedExtensionsHandler extends HandshakeMessageHandler<EncryptedExtensionsMessage> { @Override public EncryptedExtensionsSerializer getSerializer(EncryptedExtensionsMessage message) { return new EncryptedExtensionsSerializer(message, tlsContext.getChooser().getSelectedProtocolVersion()); } EncryptedExtensionsHandler(TlsContext tlsContext); @Override EncryptedExtensionsParser getParser(byte[] message, int pointer); @Override EncryptedExtensionsPreparator getPreparator(EncryptedExtensionsMessage message); @Override EncryptedExtensionsSerializer getSerializer(EncryptedExtensionsMessage message); @Override void adjustTLSContext(EncryptedExtensionsMessage message);  }
@Test public void testGetSerializer() { assertTrue(handler.getSerializer(new EncryptedExtensionsMessage()) instanceof EncryptedExtensionsSerializer); }