### Question:
NamespaceRepositoryOkHttpImpl extends AbstractRepositoryOkHttpImpl implements NamespaceRepository { @Override public Observable<List<AccountNames>> getAccountsNames(List<Address> addresses) { Addresses addressesDto = new Addresses() .addresses(addresses.stream().map(Address::plain).collect(Collectors.toList())); return getAccountNames(addressesDto); } NamespaceRepositoryOkHttpImpl(ApiClient apiClient); NamespaceRoutesApi getClient(); @Override Observable<NamespaceInfo> getNamespace(NamespaceId namespaceId); @Override Observable<Page<NamespaceInfo>> search(NamespaceSearchCriteria criteria); @Override Observable<List<NamespaceName>> getNamespaceNames(List<NamespaceId> namespaceIds); @Override Observable<MosaicId> getLinkedMosaicId(NamespaceId namespaceId); @Override Observable<Address> getLinkedAddress(NamespaceId namespaceId); @Override Observable<List<AccountNames>> getAccountsNames(List<Address> addresses); @Override Observable<List<MosaicNames>> getMosaicsNames(List<MosaicId> ids);  }### Answer:
@Test public void shouldGetAccountsNamesFromAddresses() throws Exception { Address address = Address.generateRandom(networkType); AccountNamesDTO dto = new AccountNamesDTO(); dto.setAddress(encodeAddress(address)); dto.setNames(Collections.singletonList("accountalias")); AccountsNamesDTO accountsNamesDTO = new AccountsNamesDTO(); accountsNamesDTO.setAccountNames(Collections.singletonList(dto)); mockRemoteCall(accountsNamesDTO); List<AccountNames> resolvedList = repository.getAccountsNames(Collections.singletonList(address)).toFuture().get(); Assertions.assertEquals(1, resolvedList.size()); AccountNames accountNames = resolvedList.get(0); Assertions.assertEquals(address, accountNames.getAddress()); Assertions.assertEquals("accountalias", accountNames.getNames().get(0).getName()); }