}
public static Compliance createComplianceSnapshot(Date statusDate, String consumerUuid,
String owner, String statusString) {
Consumer consumerSnap = new Consumer(consumerUuid, createOwnerSnapshot(owner, owner));
ComplianceStatus statusSnap = new ComplianceStatus(statusDate, statusString);
if (statusString.toLowerCase().equals("invalid")) {
ComplianceReason reason = new ComplianceReason("reason-key", "Test message");
reason.setComplianceStatus(statusSnap);
statusSnap.getReasons().add(reason);
}
return new Compliance(statusDate, consumerSnap, statusSnap);
}