@Test
public void testFindImportByExportingInstance() {

	Collection<Import> imports = new HashSet<Import> ();
	imports.add( new Import( "/some/path", "comp1" ));
	imports.add( new Import( "/some/path/deeper", "comp1" ));
	imports.add( new Import( "/some/other-path", "comp1" ));
	Assert.assertNull( ImportHelpers.findImportByExportingInstance( null, null ));
	Assert.assertNull( ImportHelpers.findImportByExportingInstance( null, "/some/path" ));
	Assert.assertNull( ImportHelpers.findImportByExportingInstance( imports, null ));
	Assert.assertNull( ImportHelpers.findImportByExportingInstance( imports, "/wrong/path" ));
	Assert.assertEquals(
			"/some/path",
			ImportHelpers.findImportByExportingInstance( imports, "/some/path" ).getInstancePath());
	Assert.assertEquals(
			"/some/path/deeper",
			ImportHelpers.findImportByExportingInstance( imports, "/some/path/deeper" ).getInstancePath());
}