}
@Test
public void ensurePersistableFromJson() throws Exception {
String eventJson = loadJsonFile("org/candlepin/gutterball/jackson/compliance-created.json");
GutterballObjectMapper mapper = new GutterballObjectMapper();
Event event = mapper.readValue(eventJson, Event.class);
Compliance complianceSnap = mapper.readValue(event.getNewEntity(), Compliance.class);
// This is normally done by the event handlers.
complianceSnap.setDate(complianceSnap.getStatus().getDate());
complianceSnapshotCurator.create(complianceSnap);
}