@Test
public void testGetPackagePath() {

	Assert.assertNull(ModuleNameUtil.getPackagePath("a-package"));
	Assert.assertEquals(
		"a-module", ModuleNameUtil.getPackagePath("a-package/a-module"));
	Assert.assertEquals(
		"a-module.js",
		ModuleNameUtil.getPackagePath("a-package/a-module.js"));
	Assert.assertEquals(
		"a-folder/a-module",
		ModuleNameUtil.getPackagePath("a-package/a-folder/a-module"));
	Assert.assertEquals(
		"a-folder/a-module.js",
		ModuleNameUtil.getPackagePath("a-package/a-folder/a-module.js"));
	Assert.assertNull(ModuleNameUtil.getPackagePath("./a-module"));
}