@Test
	public void testDeleteAsJarFile() throws IOException {
		WritableModuleRegistry writableModuleRegistry = new WritableResourceModuleRegistry(tempPath());
		File processors = temp.newFolder("processor");
		org.springframework.util.Assert.isTrue(new File(processors, "foo.jar").createNewFile(), "could not create dummy file");


		org.springframework.util.Assert.isTrue(writableModuleRegistry.delete(TestModuleDefinitions.dummy("foo", processor)));
	}
Tests for ResourceModuleRegistry implementation logic.

@author Eric Bottard
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/module/WritableResourceModuleRegistryLogicTests.java