### Question:
SeedPeers implements PeerDiscovery { @Override public InetSocketAddress[] getPeers(long services, long timeoutValue, TimeUnit timeoutUnit) throws PeerDiscoveryException { if (services != 0) throw new PeerDiscoveryException("Pre-determined peers cannot be filtered by services: " + services); try { return allPeers(); } catch (UnknownHostException e) { throw new PeerDiscoveryException(e); } } SeedPeers(NetworkParameters params);  SeedPeers(int[] seedAddrs, NetworkParameters params); @Nullable InetSocketAddress getPeer(); @Override InetSocketAddress[] getPeers(long services, long timeoutValue, TimeUnit timeoutUnit); @Override void shutdown();  }### Answer:
@Test public void getPeers_length() throws Exception{ SeedPeers seedPeers = new SeedPeers(MAINNET); InetSocketAddress[] addresses = seedPeers.getPeers(0, 0, TimeUnit.SECONDS); assertThat(addresses.length, equalTo(MAINNET.getAddrSeeds().length)); }
@Test public void getPeers_length() throws Exception { SeedPeers seedPeers = new SeedPeers(MAINNET); InetSocketAddress[] addresses = seedPeers.getPeers(0, 0, TimeUnit.SECONDS); assertThat(addresses.length, equalTo(MAINNET.getAddrSeeds().length)); }
@Test public void getPeers_length() throws Exception{ SeedPeers seedPeers = new SeedPeers(MainNetParams.get()); InetSocketAddress[] addresses = seedPeers.getPeers(0, 0, TimeUnit.SECONDS); assertThat(addresses.length, equalTo(MainNetParams.get().getAddrSeeds().length)); }