@Test
public void testAddOperations_waitUntilFinished() {

    RunnableHolder runnables = new RunnableHolder(250);
    runnables.addOperationsAndWait(fixture, true);
    assertEquals(0, fixture.operationCount().intValue());
    runnables.checkResults();
    //without waiting
    runnables = new RunnableHolder(250);
    runnables.addOperationsAndWait(fixture, false);
    fixture.waitUntilAllOperationsAreFinished();
    assertEquals(0, fixture.operationCount().intValue());
    runnables.checkResults();
}