### Question:
Account { double withdraw(double withdraw) throws TransactionFailedException { double withdrawValue = notInfinite(positive(withdraw)); if (withdrawValue <= availableMoney()) { money -= withdrawValue; return money; } else { throw new TransactionFailedException("Unsufficient funds"); } } Account();   Account(double money);   }### Answer:
@Test(expected = TransactionFailedException.class) public void unsufficientFunds1() throws TransactionFailedException { Account account = new Account(); account.withdraw(1234); }
@Test(expected = TransactionFailedException.class) public void unsufficientFunds2() throws TransactionFailedException { Account account = new Account(50); account.withdraw(50.1); }