StringWriter sw = new StringWriter();
json.writeTo(sw, person);
String generated = sw.toString();
JsonParser parser = json.getJsonFactory().createJsonParser(generated);
Person parsedPerson = json.parseFrom(parser, Person.class);
parser.close();
assertEquals(person, parsedPerson);
return generated;