* Test that the order doesn't matter.
*
* @throws Exception
*/
public void testDroolsQueue() throws Exception {
InternetApplication root = createInternetApplication();
// initially empty
assertEquals(0, root.getTypes().size());
assertEquals(0, root.getScopes().size());
// infer new elements
DroolsQueueEngine engine = new DroolsQueueEngine( new EcoreInferenceHandlerFactory() );
engine.create(root, new NullProgressMonitor());
// check that it did actually create stuff
assertEquals(1, root.getTypes().size());
assertEquals(1, root.getScopes().size());
// it should also fire new rules in the rule file
assertEquals(root.getName(), "created successfully");
}