### Question:
ObaAisController implements ObaAisApi { @Override public ResponseEntity<AccountDetailsTO> account(String accountId) { return ResponseEntity.ok(aisService.getAccount(accountId)); }  @Override @PreAuthorize("#userLogin == authentication.principal.login") ResponseEntity<List<AccountDetailsTO>> accounts(String userLogin); @Override ResponseEntity<AccountDetailsTO> account(String accountId); @Override ResponseEntity<List<TransactionTO>> transactions(String accountId, LocalDate dateFrom, LocalDate dateTo); @Override ResponseEntity<CustomPageImpl<TransactionTO>> transactions(String accountId, LocalDate dateFrom, LocalDate dateTo, int page, int size); @Override ResponseEntity<List<PaymentTO>> getPendingPeriodicPayments();  }### Answer:
@Test void account() { when(aisService.getAccount(any())).thenReturn(getAccountDetailsTO()); ResponseEntity<AccountDetailsTO> response = obaAisController.account(LOGIN); assertTrue(response.getStatusCode().is2xxSuccessful()); assertEquals(response.getBody(), getAccountDetailsTO()); verify(aisService, times(1)).getAccount(LOGIN); }