@Test
public void testGetDependencyPath() {

	Assert.assertEquals(
		"dep", ModuleNameUtil.getDependencyPath("a-dir/a-module", "dep"));
	Assert.assertEquals(
		"dep",
		ModuleNameUtil.getDependencyPath("a-dir/a-module", "../dep"));
	Assert.assertEquals(
		"a-dir/dep",
		ModuleNameUtil.getDependencyPath("a-dir/a-module", "./dep"));
	Assert.assertEquals(
		"a-dir/dep",
		ModuleNameUtil.getDependencyPath(
			"a-dir/other-dir/a-module", "../dep"));
	Assert.assertEquals(
		"a-dir/other-dir",
		ModuleNameUtil.getDependencyPath("a-dir/other-dir/a-module", "."));
	Assert.assertEquals(
		"a-dir",
		ModuleNameUtil.getDependencyPath("a-dir/other-dir/a-module", ".."));
}