protected <TObject> TObject testEncodeDecode (final TObject input)
throws EncodingException
{
final JsonDataEncoder<TObject> encoder = JsonDataEncoder.create ((Class<TObject>) input.getClass (), false);
final EncodeOutcome outcome = encoder.encode (input, null);
final TObject output = encoder.decode (outcome.data, outcome.metadata);
return (output);
}