### Question:
ObaConsentController implements ObaConsentApi { @Override public ResponseEntity<List<TppInfoTO>> tpps() { return ResponseEntity.ok(tppInfoCmsService.getTpps()); }  @Override @PreAuthorize("#userLogin == authentication.principal.login") ResponseEntity<List<ObaAisConsent>> consents(String userLogin); @Override ResponseEntity<Boolean> revokeConsent(String consentId); @Override ResponseEntity<Void> confirm(String userLogin, String consentId, String authorizationId, String tan); @Override ResponseEntity<Void> createPiis(CreatePiisConsentRequestTO request); @Override ResponseEntity<List<TppInfoTO>> tpps();  }### Answer:
@Test void tpps() { when(tppInfoCmsService.getTpps()).thenReturn(Collections.singletonList(new TppInfoTO())); ResponseEntity<List<TppInfoTO>> response = controller.tpps(); assertEquals(ResponseEntity.ok(Collections.singletonList(new TppInfoTO())), response); }