### Question:
Serialization { private Serialization() { } private  Serialization(); static Serializable deserialize(byte[] arr); static byte[] serialize(Serializable object); static InputStream serializeToStream(final Serializable object); static InputStream serializeToStream(final Serializable object, Executor executor);  }### Answer:
@Test public void testSerialization() throws IOException, ClassNotFoundException { Serializable expected = null; Serializable actual = Serialization.deserialize(Serialization.serialize(expected)); Assert.assertNull(actual); expected = "Test string"; actual = Serialization.deserialize(Serialization.serialize(expected)); Assert.assertEquals(expected, actual); }