assertThat(executedTasks, equalTo(toList(a)));
}
@Test
public void testNotifiesBeforeTaskClosureAsTasksAreExecuted() {
final TestClosure runnable = context.mock(TestClosure.class);
final Task a = task("a");
final Task b = task("b");
final Closure closure = toClosure(runnable);
taskExecuter.beforeTask(closure);