List<String> executionOrder = new ArrayList<>();
Runnable firstBlock = ()-> executionOrder.add("first");
Runnable secondBlock =()->executionOrder.add("second");
SpecExecutionBlock specBlock = SpecExecutionBlock.create(noBefores, mock(Runnable.class), Lists.newArrayList(firstBlock, secondBlock), mockedParentContext, sharedContext);
specBlock.run();
assertThat(executionOrder).isEqualTo(Lists.newArrayList("first", "second"));
}