ManagedObjectRepresentation representation = minimalManagedObjectBuilder()
.withChildAssets(getMinimalMORCR())
.withChildDevices(getMinimalMORCR())
.withParents(getMinimalMORCR())
.build();
JSONObject expectedJSON = minimalJsonManagedObjectRepresentation()
.withPropertyBuilder(PROP_CHILD_ASSETS, minimalJsonObjectReferenceRepresentation())
.withPropertyBuilder(PROP_CHILD_DEVICES, minimalJsonObjectReferenceRepresentation())
.withPropertyBuilder(PROP_PARENTS, minimalJsonObjectReferenceRepresentation()).build();
JSONObject outputJSON = toJson(representation);
assertThat(outputJSON.toString()).isEqualTo(expectedJSON.toString());
}