### Question:
ShardInfoDownloader { public ShardingInfo getShardingInfoFromPeer(String addr) { int attempts = 3; if (StringUtils.isBlank(addr)) { String error = String.format("address is EMPTY or NULL : '%s'", addr); log.error(error); throw new RuntimeException(error); } ShardingInfo res = null; Peer p = peers.findOrCreatePeer(null, addr, true); if (p != null) { if (tryConnectToPeer(p, attempts)) { PeerClient pc = new PeerClient(p); res = pc.getShardingInfo(); } else { log.debug("FAILED to connect to peer: {} after '{}' attempts", addr, attempts); } } else { log.debug("Can not create peer: {}", addr); } return res; } @Inject  ShardInfoDownloader(PeersService peers); void setShardInfoByPeers(Map<String, ShardingInfo> testData); void processAllPeersShardingInfo(); boolean processPeerShardingInfo(String pa, ShardingInfo si); ShardingInfo getShardingInfoFromPeer(String addr); Map<String, ShardingInfo> getShardInfoFromPeers(); ShardInfo getShardInfo(Long shardId); double getShardWeight(Long shardId); Map<Long, Double> getShardRelativeWeights(); static final String SHARD_ID_ENV; }### Answer:
@Test public void testGetShardingInfoFromPeer() { }