SpdzDummyDataSupplier implements SpdzDataSupplier { @Override public FieldElement getSecretSharedKey() { return createElement(secretSharedKey); } SpdzDummyDataSupplier(int myId, int noOfPlayers, FieldDefinition fieldDefinition,
      BigInteger secretSharedKey);  SpdzDummyDataSupplier(int myId, int noOfPlayers, FieldDefinition fieldDefinition,
      BigInteger secretSharedKey, int expPipeLength); @Override SpdzTriple getNextTriple(); @Override SpdzSInt[] getNextExpPipe(); @Override SpdzInputMask getNextInputMask(int towardPlayerId); @Override SpdzSInt getNextBit(); @Override FieldDefinition getFieldDefinition(); @Override FieldElement getSecretSharedKey(); @Override SpdzSInt getNextRandomFieldElement();  }
@Test public void testGetters() { FieldDefinition fieldDefinition = fields.get(0); SpdzDummyDataSupplier supplier = new SpdzDummyDataSupplier(1, 2, fieldDefinition, BigInteger.ONE); assertEquals(BigInteger.ONE, fieldDefinition.convertToUnsigned(supplier.getSecretSharedKey())); }