@Test
public void testRepeatBlockBasic() throws Exception {

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