### Question:
AccountHelperService { boolean needsToUpdateUsage(AisConsent aisConsent) { return aisConsent.isOneAccessType() || requestProviderService.isRequestFromTPP(); }  SpiAccountReference findAccountReference(List<AccountReference> references, String resourceId); SpiContextData getSpiContextData();  }### Answer:
@Test void needsToUpdateUsage_returnTrue() { boolean actual = accountHelperService.needsToUpdateUsage(createConsent()); assertTrue(actual); }
@Test void needsToUpdateUsage_returnFalse() { when(requestProviderService.isRequestFromTPP()) .thenReturn(false); boolean actual = accountHelperService.needsToUpdateUsage(createConsentWithFalceOneAccessType()); assertFalse(actual); }