@Test
public void override_file() throws IOException {

	// Given
	URL url = Thread.currentThread().getContextClassLoader().getResource("example_override");
	File example = new File(url.getPath());
	Path resources = temp.newFolder().toPath();
	FileUtils.copyDirectory(example, resources.toFile());
	ResourcesManager manager = new ResourcesManager(resources, null);
	List<CarnotzetModule> modules = Arrays.asList(
			CarnotzetModule.builder().name("service3").serviceId("service3").build(),
			CarnotzetModule.builder().name("service2").serviceId("service2").build(),
			CarnotzetModule.builder().name("service1").serviceId("service1").build()
	);
	// When
	manager.resolveResources(modules);
	// Then
	Assert.assertThat(readFile(resources, "resolved/service3/files/injected.by.service1"), is("service1"));
	Assert.assertThat(readFile(resources, "resolved/service3/files/injected.by.service2"), is("service2"));
	Assert.assertThat(readFile(resources, "resolved/service3/files/injected.by.service3"), is("service3"));
	Assert.assertThat(readFile(resources, "resolved/service3/files/overridden.by.service1"), is("service1"));
	Assert.assertThat(readFile(resources, "resolved/service3/files/overridden.by.service2"), is("service2"));
	Assert.assertThat(readFile(resources, "resolved/service3/files/injected.by.service2.and.overridden.by.service1"), is("service1"));
	Assert.assertThat(readFile(resources, "resolved/service3/files/injected.by.service2.and.overridden.by.service1"), is("service1"));
	Assert.assertThat(readFile(resources, "resolved/service3/files/subfolder/subfolder.injected.by.service1"), is("service1"));
}