### Question:
CreateConsentReq implements AccountReferenceCollector { @JsonIgnore @Override public Set<AccountReference> getAccountReferences() { return getReferenceSet(this.access.getAccounts(), this.access.getBalances(), this.access.getTransactions()); }  @JsonIgnore @Override Set<AccountReference> getAccountReferences(); @JsonIgnore boolean isGlobalOrAllAccountsAccessConsent(); @JsonIgnore AisConsentData getAisConsentData(); @JsonIgnore boolean isConsentForAllAvailableAccounts(); @JsonIgnore boolean isOneAccessType();  }### Answer:
@Test void getAccountReferences_all() { CreateConsentReq req = new CreateConsentReq(); req.setAccess(getAccess(getRefs(1), getRefs(2), getRefs(3))); Set<AccountReference> result = req.getAccountReferences(); assertThat(result.size()).isEqualTo(3); }
@Test void getAccountReferences_1_null() { CreateConsentReq req = new CreateConsentReq(); req.setAccess(getAccess(null, getRefs(2), getRefs(3))); Set<AccountReference> result = req.getAccountReferences(); assertThat(result.size()).isEqualTo(3); }
@Test void getAccountReferences_all_null() { CreateConsentReq req = new CreateConsentReq(); req.setAccess(getAccess(null, null, null)); Set<AccountReference> result = req.getAccountReferences(); assertThat(result.size()).isEqualTo(0); }