### Question:
NodeRepositoryOkHttpImpl extends AbstractRepositoryOkHttpImpl implements NodeRepository { @Override public Observable<List<NodeInfo>> getNodePeers() { return exceptionHandling(call(getClient()::getNodePeers)) .map(l -> l.stream().map(this::toNodeInfo).collect(Collectors.toList())); } NodeRepositoryOkHttpImpl(ApiClient apiClient); NodeRoutesApi getClient(); Observable<NodeInfo> getNodeInfo(); @Override Observable<List<NodeInfo>> getNodePeers(); Observable<NodeTime> getNodeTime(); @Override Observable<StorageInfo> getNodeStorage(); @Override Observable<NodeHealth> getNodeHealth(); Observable<ServerInfo> getServerInfo();  }### Answer:
@Test public void getNodePeers() throws Exception { NodeInfoDTO dto = new NodeInfoDTO(); dto.setPort(3000); dto.setHost("http: dto.setFriendlyName("friendlyName"); dto.setNetworkIdentifier(104); dto.setRoles(RolesTypeEnum.NUMBER_2); dto.setVersion(1234); dto.setPublicKey("somePublicKey"); dto.setNetworkGenerationHashSeed("abc"); mockRemoteCall(Collections.singletonList(dto)); NodeInfo info = repository.getNodePeers().toFuture().get().get(0); Assertions.assertNotNull(info); Assertions.assertEquals(dto.getPort().intValue(), info.getPort()); Assertions.assertEquals(dto.getHost(), info.getHost()); Assertions.assertEquals(dto.getPublicKey(), info.getPublicKey()); Assertions.assertEquals(dto.getFriendlyName(), info.getFriendlyName()); Assertions.assertEquals(NetworkType.MAIN_NET, info.getNetworkIdentifier()); Assertions.assertEquals(Collections.singletonList(RoleType.API_NODE), info.getRoles()); Assertions.assertEquals(dto.getVersion().intValue(), info.getVersion()); Assertions.assertEquals( dto.getNetworkGenerationHashSeed(), info.getNetworkGenerationHashSeed()); }