isValid(representation, UPDATE);
}
@Test
public void shouldConvertDateToJson() throws Exception {
ManagedObjectRepresentation representation = minimalManagedObjectBuilder().withLastUpdated(lastUpdated).build();
String stringDate = DateUtils.format(lastUpdated);
JSONObject expectedJSON = minimalJsonManagedObjectRepresentation().withProperty(PROP_LAST_UPDATED, stringDate).build();
JSONObject outputJSON = toJson(representation);
System.out.println(outputJSON);