@Test public void canGetAccountHolds() { List<Account> accounts = accountService.getAccounts(); List<Hold> holds = accountService.getHolds(accounts.get(0).getId()); assertTrue(holds != null); // only check the holds if they exist if (holds.size()>0) { assertTrue(holds.get(0).getAmount().floatValue() >= 0.0f); } }