BroadcastingNetworkProxy implements Network { @Override public int getNoOfParties() { return network.getNoOfParties(); } BroadcastingNetworkProxy(Network network, BroadcastValidation validator); @Override void send(int partyId, byte[] data); @Override byte[] receive(int partyId); @Override int getNoOfParties(); @Override void sendToAll(byte[] data); @Override List<byte[]> receiveFromAll();  }
@Test public void testGetNoParties() { assertEquals(3, validBroadcastNetwork.getNoOfParties()); }