@Test
public void testToModuleName() {

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