Event event = CannedQueries.eventByName( TestConstants.EVENT1_NAME);
Map<String, Object> session = new HashMap<String, Object>();
ApplyCoCampDiscountsAction action = createNewAction(clock, event, session);
Organisation testOrg = CannedQueries.orgByName(TestConstants.ORG1_NAME);
Unit testUnit = CannedQueries.unitByName(TestConstants.UNIT1_NAME, testOrg);
Map<Unit, List<Transaction>> transactions = action.getRelevantTransactions(event);
// Should have filtered out "Person booked after earlybird"
TestUtils.assertNames(transactions.get(testUnit), "Payment 1", "Payment 2", "Payment 3","Refund 1", "Discount for early payment");
Unit testUnit2 = CannedQueries.unitByName(TestConstants.UNIT2_NAME, testOrg);
TestUtils.assertNames(transactions.get(testUnit2), "Unit 2 payment");
}