Juwang - round trip test with class hierarchy

RoudTripTest today test a complex object with a newly build configuration and serialized/deserialized configuration. But it doesn't leverage  deserailizaed class hierarchy when deserialize the configuration. 

In a real client 's scenario, we have serialized class hierarchy and Task configuration,  then we need to deserialize the configuration with the deserialized class hierarchy.  This scenario now is covered in the RoundTripTests. 

This is to resolve issue #200.
you don't need the close() calls here, that is what try-with-resources provides.