@Test
public void testRepeatUntilBlockBasic() throws Exception {

  Piece piece1 = new Piece();
  Piece piece2 = new Piece();
  Block innerBlock = new SequenceBlock(piece1, piece2);
  Block repeatBlock = new RepeatUntilBlock(
    REPEAT_TIMES,
    innerBlock,
    falseSupplier
  );
  BlockTestingUtils.testIndependence(
    Iterables.concat(Collections.nCopies(REPEAT_TIMES, Arrays.asList(piece1, piece2))),
    repeatBlock);
  Assert.assertEquals(2, innerBlock.getPieceCount().getCount());
  Assert.assertFalse(repeatBlock.getPieceCount().isKnown());
}