FormRepresentationDecoder decoder = FormEncodingClientFactory.getDecoder();
FormRepresentation form = decoder.decode(json);
assertNotNull("form shouldn't be null", form);
String json2 = encoder.encode(form);
FormRepresentation form2 = decoder.decode(json2);
assertNotNull("json2 shouldn't be null", json2);
assertNotSame("json2 shouldn't be empty", "", json2);
assertNotNull("form2 shouldn't be null", form2);
assertEquals("both forms should be the same in contents", form, form2);