public void testSerializeSingleProperty() throws Exception {
// given
TestResource testResource = new TestResource();
Serializer<JSONObject> jsonSerializer = new JSONSerializer();
ResourceShape resourceShape = new ResourceShape();
resourceShape.addProperty(TestResource.STRING_PROPERTY);
// when
JSONObject jsonObject = jsonSerializer.serialize(testResource, resourceShape);
String jsonString = jsonObject.toString();
jsonObject = new JSONObject(jsonString);