@Test
public void copy_own_resources() throws IOException {

	// Given
	URL url = Thread.currentThread().getContextClassLoader().getResource("example_copy_own_resources");
	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("service2").serviceId("service2").build(),
			CarnotzetModule.builder().name("service1").serviceId("service1").build()
	);
	// When
	manager.resolveResources(modules);
	// Then
	assertTrue(resources.resolve("resolved/service2/s2").toFile().exists());
	assertTrue(resources.resolve("resolved/service2/resourcedir/from_service_2").toFile().exists());
	assertTrue(resources.resolve("resolved/service2/resourcedir/from_service_1").toFile().exists());
	assertTrue(resources.resolve("resolved/service2/resourcedir2/from_service_1").toFile().exists());
}