public void testCyclicDependency() throws Exception {
   try {
     ErlangPrepareDependenciesCompileTask.getModuleBuildOrder(myModule);
     fail("Expected a cyclic dependency exception to be thrown.");
   } catch (ErlangPrepareDependenciesCompileTask.CyclicDependencyFoundException expected) {
   }
 }
 public void testTestsDependency() throws Exception {
   ErlangModuleBuildOrderDescriptor moduleBuildOrder =
       ErlangPrepareDependenciesCompileTask.getModuleBuildOrder(myModule);
   assertSameErlangModules(moduleBuildOrder.myOrderedErlangModulePaths, "src_parse_transform");
   assertSameErlangModules(
       moduleBuildOrder.myOrderedErlangTestModulePaths, "test_parse_transform", "test");
 }
 public void testDependenciesAreCompiledFirst() throws Exception {
   ErlangModuleBuildOrderDescriptor moduleBuildOrder =
       ErlangPrepareDependenciesCompileTask.getModuleBuildOrder(myModule);
   assertSameErlangModules(
       moduleBuildOrder.myOrderedErlangModulePaths,
       "parse_transform1",
       "parse_transform2",
       "behaviour1",
       "module1");
 }