((CompositeFileTree) fileTree).getSourceCollections();
}
@Test
public void filterDelegatesToEachSet() {
final FileCollection filtered1 = context.mock(FileCollection.class);
final FileCollection filtered2 = context.mock(FileCollection.class);
@SuppressWarnings("unchecked")
final Spec<File> spec = context.mock(Spec.class);
FileCollection filtered = collection.filter(spec);
assertThat(filtered, instanceOf(CompositeFileCollection.class));
context.checking(new Expectations() {{
one(source1).filter(spec);
will(returnValue(filtered1));