@Test
public void deserialize() throws Exception {

    String stringData = "fooBar";
    byte[] serialized = serializer.serialize(stringData);
    Object deserialized = serializer.deserialize(serialized);
    // object references are different, but as value they are same object
    assertEquals(stringData, deserialized);
}