Deserialization and JUnit Testing