### Question:
TransferMoneyService { public void transfer(User payingUser, User receiver, int amount) { } TransferMoneyService(AccountRepository accountRepository); void transfer(User payingUser, User receiver, int amount);  }### Answer:
@Test public void shouldNotTransferAnyMoney() { User user = aUser(1); transferMoneyService.transfer(user, user, 100); verifyZeroInteractions(accountRepository); }
@Test @Ignore public void shouldReadUserFromDatabaseAndRegisterHimInService() { User payingUser = aUser(1); User receiver = aUser(2); transferMoneyService.transfer(payingUser, receiver, 20); verify(accountRepository).transferFrom(payingUser, 20); verify(accountRepository).transferTo(receiver, 20); }