### Question:
BankAccount { public boolean withdraw(Long money) { long balance = amount - money; if (balance > 0 || balance == 0) { amount = balance; return true; }else { return false; } } BankAccount(long amount); boolean withdraw(Long money);  }### Answer:
@Test public void withdrawMoreMoneyThanAmountFails() { BankAccount anyAccount = new BankAccount(1); boolean withdrawOk = anyAccount.withdraw(10L); assertThat(withdrawOk, is(true)); }
@Test public void withdrawCompleteAmountPasses() { BankAccount anyAccount = new BankAccount(1); boolean withdrawOk = anyAccount.withdraw(1L); assertThat(withdrawOk, is(true)); }