public void copyActionCanExcludeFile() {
final Action<FileCopyDetails> action1 = context.mock(Action.class, "action1");
final Action<FileCopyDetails> action2 = context.mock(Action.class, "action2");
context.checking(new Expectations(){{
Sequence seq = context.sequence("seq");
one(delegate).visitSpec(spec);
inSequence(seq);
allowing(spec).getAllCopyActions();
will(returnValue(toList(action1, action2)));