Transactions { public List<Transaction> getTransactions() { return transactions; } Transactions();  Transactions(List<Transaction> transactions);  Transactions(Transaction... transactions); List<Transaction> getTransactions(); Transaction byId(String id); Transactions copyWithReplacement(Transaction transaction);  }
@Test public void createWithArray() { Transaction t1 = MockTransaction.create("2015-01-02", "a", 123); Transaction t2 = MockTransaction.create("2015-01-02", "a", 123); Transactions transactions = new Transactions(t1, t2); assertEquals(ImmutableList.of(t1, t2), transactions.getTransactions()); }
@Test public void getTransactions() { assertNotNull(new Transactions().getTransactions()); }