@Test
public void should_filter_resources() throws Exception {

    CompilationManager compilationManager = new CompilationManager(eventBus, sourceRoots, destination);
    File resource = destination.resolve("restx/classloader/test_resource.txt___jb_old___").toFile();
    assertThat(resource).doesNotExist();
    prepareSource("restx/classloader/test_resource.txt___jb_old___");
    compilationManager.rebuild();
    assertThat(resource).doesNotExist();
    assertThat(events).isEmpty();
}