NetworkConfigurationImpl implements NetworkConfiguration { @Override public Party getParty(int id) { return parties.get(id); } NetworkConfigurationImpl(int myId, Map<Integer, Party> parties); @Override Party getParty(int id); @Override int getMyId(); @Override Party getMe(); @Override int noOfParties(); @Override String toString();  }
@Test public void testGetParty() { Party p2 = netConf.getParty(2); assertEquals("host2", p2.getHostname()); assertEquals(2, p2.getPartyId()); assertEquals(3002, p2.getPort()); Party p10 = netConf.getParty(10); assertEquals(null, p10); }