NetworkConfigurationImpl implements NetworkConfiguration { @Override public Party getMe() { return getParty(getMyId()); } 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 testGetMe() { assertEquals(me.getPartyId(), netConf.getMe().getPartyId()); assertEquals(me.getHostname(), netConf.getMe().getHostname()); assertEquals(me.getPort(), netConf.getMe().getPort()); }