### Question:
RestrictionAccountRepositoryOkHttpImpl extends AbstractRepositoryOkHttpImpl implements RestrictionAccountRepository { @Override public Observable<AccountRestrictions> getAccountRestrictions(Address address) { Callable<AccountRestrictionsInfoDTO> callback = () -> getClient().getAccountRestrictions(address.plain()); return exceptionHandling( call(callback) .map(AccountRestrictionsInfoDTO::getAccountRestrictions) .map(this::toAccountRestrictions)); } RestrictionAccountRepositoryOkHttpImpl(ApiClient apiClient); @Override Observable<AccountRestrictions> getAccountRestrictions(Address address); RestrictionAccountRoutesApi getClient();  }### Answer:
@Test public void shouldGetAccountRestrictions() throws Exception { Address address = Address.generateRandom(networkType); AccountRestrictionsDTO dto = new AccountRestrictionsDTO(); dto.setAddress(address.encoded()); AccountRestrictionDTO restriction = new AccountRestrictionDTO(); restriction.setRestrictionFlags(AccountRestrictionFlagsEnum.NUMBER_32770); restriction.setValues(Arrays.asList("9636553580561478212")); dto.setRestrictions(Collections.singletonList(restriction)); AccountRestrictionsInfoDTO info = new AccountRestrictionsInfoDTO(); info.setAccountRestrictions(dto); mockRemoteCall(info); AccountRestrictions accountRestrictions = repository.getAccountRestrictions(address).toFuture().get(); Assertions.assertEquals(address, accountRestrictions.getAddress()); Assertions.assertEquals(1, accountRestrictions.getRestrictions().size()); Assertions.assertEquals( AccountMosaicRestrictionFlags.BLOCK_MOSAIC, accountRestrictions.getRestrictions().get(0).getRestrictionFlags()); Assertions.assertEquals( Arrays.asList(MapperUtils.toMosaicId("9636553580561478212")), accountRestrictions.getRestrictions().get(0).getValues()); }