private void checkNameFilterApplied(DefaultBuildExecuter executer) {
final BuildExecuter delegate = context.mock(BuildExecuter.class);
executer.setDelegate(delegate);
context.checking(new Expectations(){{
Task task = context.mock(Task.class);
TaskContainerInternal taskContainer = context.mock(TaskContainerInternal.class);
allowing(project).getSubprojects();
will(returnValue(toSet()));
allowing(project).getTasks();