Collection<? extends ModuleStateChange> moduleTransitions = transitions.getModuleTransitions();
assertEquals(6, moduleTransitions.size());
Iterator<? extends ModuleStateChange> iterator = moduleTransitions.iterator();
ModuleStateChange change1 = iterator.next();
ModuleStateChange change2 = iterator.next();
ModuleStateChange change3 = iterator.next();
ModuleStateChange change4 = iterator.next();
ModuleStateChange change5 = iterator.next();
ModuleStateChange change6 = iterator.next();
assertEquals("plugin1", change1.getModuleDefinition().getName());
assertEquals(Transition.LOADED_TO_UNLOADED, change1.getTransition());
assertEquals("plugin2", change2.getModuleDefinition().getName());
assertEquals("project1", change3.getModuleDefinition().getName());
assertEquals(Transition.LOADED_TO_UNLOADED, change3.getTransition());
assertEquals(Transition.UNLOADED_TO_LOADED, change4.getTransition());
assertEquals("project1", change4.getModuleDefinition().getName());
assertEquals("plugin1", change5.getModuleDefinition().getName());
assertEquals("plugin2", change6.getModuleDefinition().getName());
assertEquals(Transition.UNLOADED_TO_LOADED, change6.getTransition());
}