### Question:
DefaultSeedNodeRepository implements SeedNodeRepository { public Collection<NodeAddress> getSeedNodeAddresses() { if (cache.isEmpty()) reload(); return cache; } @Inject  DefaultSeedNodeRepository(Config config); Collection<NodeAddress> getSeedNodeAddresses(); boolean isSeedNode(NodeAddress nodeAddress);  }### Answer:
@Test public void getSeedNodes() { DefaultSeedNodeRepository DUT = new DefaultSeedNodeRepository(new Config()); Assert.assertFalse(DUT.getSeedNodeAddresses().isEmpty()); }
@Test public void manualSeedNodes() { String seed1 = "asdf:8001"; String seed2 = "fdsa:6001"; String seedNodesOption = format("--%s=%s,%s", Config.SEED_NODES, seed1, seed2); DefaultSeedNodeRepository DUT = new DefaultSeedNodeRepository(new Config(seedNodesOption)); Assert.assertFalse(DUT.getSeedNodeAddresses().isEmpty()); Assert.assertEquals(2, DUT.getSeedNodeAddresses().size()); Assert.assertTrue(DUT.getSeedNodeAddresses().contains(new NodeAddress(seed1))); Assert.assertTrue(DUT.getSeedNodeAddresses().contains(new NodeAddress(seed2))); }