added initial test code to exercise POJO-to-JSON codepaths