// ------------------------------------------------------------------------
@Given("I have '(\\d+)' audit records of type '([^']*)' and application '([^']*)' and user '([^']*)' for the managed object$")
public void iHaveAuditRecord(int n, String type, String application, String user) {
for (int i = 0; i < n; i++) {
AuditRecordRepresentation rep = new AuditRecordRepresentation();
rep.setType(type);
rep.setTime(new Date());
rep.setSource((ManagedObjectRepresentation) managedObjects.get(0));
rep.setActivity("Some Activity");
rep.setApplication(application);
rep.setUser(user);
rep.setSeverity("major");
rep.setText("text");
input.add(rep);
}
}