@Test
public void testBitsNotAllSame() {

  int noOfParties = 2;
  BigInteger modulus = moduli.get(1);
  ArithmeticDummyDataSupplier supplier = new ArithmeticDummyDataSupplier(1, noOfParties,
      modulus);
  List<BigInteger> bits = new ArrayList<>(1000);
  for (int i = 0; i < 1000; i++) {
    bits.add(supplier.getRandomBitShare().getFirst());
  }
  boolean seenZero = false;
  boolean seenOne = false;
  for (BigInteger bit : bits) {
    seenZero = seenZero || bit.equals(BigInteger.ZERO);
    seenOne = seenOne || bit.equals(BigInteger.ONE);
    if (seenOne && seenZero) {
      break;
    }
  }
  assertTrue(seenOne);
  assertTrue(seenZero);
}