public void testGetRecords() {
final Component component = client.getComponentClient().createComponent("TST", new ComponentInput("New TST Component", null, null, null)).claim();
assertNotNull(component);
final AuditRecordsData auditRecordsData = client.getAuditRestClient().getAuditRecords(new AuditRecordSearchInput(null, null, null, null, null)).claim();
final Iterable<AuditRecord> filterResult = Iterables.filter(auditRecordsData.getRecords(), new Predicate<AuditRecord>() {
@Override
public boolean apply(final AuditRecord input) {
return input.getSummary().equals("Project component created") &&
input.getObjectItem().getName().equals("New TST Component");