Mockito’s mock() method creates a mock object for a Java type. In a unit test, it can replace a real dependency so the test can focus on the object’s logic. section 15.2
Mocking a repository
Create the mock with `accountRepository = mock(AccountRepository.class);` and pass it to `TransferService`. Configure `findById()` with `given()` to return test accounts, call `transferMoney()`, then use `verify()` to check the repository calls. section 15.2
