EncryptThenMacExtensionSerializer extends ExtensionSerializer<EncryptThenMacExtensionMessage> { @Override public byte[] serializeExtensionContent() { return getAlreadySerialized(); } EncryptThenMacExtensionSerializer(EncryptThenMacExtensionMessage message); @Override byte[] serializeExtensionContent();  }
@Test public void testSerializeExtensionContent() { message.setExtensionType(extensionType.getValue()); message.setExtensionLength(extensionLength); assertArrayEquals(expectedBytes, serializer.serialize()); }