Test that Java Beans are serializable, and that getters/setters work as expected