RentalService { public boolean buy(String vehicleId){ if(cv.cashAmount(43)){ return true; } throw new IllegalArgumentException("Poor customer exception"); }  boolean buy(String vehicleId);  }
@Test(expected=IllegalArgumentException.class) public void buy() { when(cut.cv.cashAmount(anyInt())).thenReturn(false); cut.buy("tesla"); }