@Test
public void should_copy_resources() throws Exception {

    CompilationManager compilationManager = new CompilationManager(eventBus, sourceRoots, destination);
    File resource = destination.resolve("restx/classloader/test_resource.txt").toFile();
    assertThat(resource).doesNotExist();
    prepareSource("restx/classloader/test_resource.txt");
    compilationManager.rebuild();
    assertThat(resource).exists();
    assertThat(events).hasSize(1);
    assertThat(events.get(0)).isInstanceOf(ClasspathResourceEvent.class);
}