JsonObject o = (JsonObject)obj;
JsonObject expected = new JsonObject();
expected.add("fieldName", new JsonPrimitive("has_boris"));
expected.add("owner", new JsonPrimitive("test_data"));
expected.addProperty("type", "boolean");
expected.addProperty("trueLabel", "is_true");
expected.addProperty("falseLabel", "is_false");
Assert.assertEquals(expected, o);
}