Create SerializableContractTest.java

example of how to test for serialization using contract tests