return TestGroovyModelFactory.class.getResourceAsStream("wro.groovy");
};
};
final WroModel model = factory.create();
Assert.assertNotNull(model);
Assert.assertEquals(Arrays.asList("g1", "g2"), new WroModelInspector(model).getGroupNames());
Assert.assertEquals(2, model.getGroupByName("g1").getResources().size());
Assert.assertTrue(model.getGroupByName("g1").getResources().get(0).isMinimize());
Assert.assertEquals("/static/app.js", model.getGroupByName("g1").getResources().get(0).getUri());
Assert.assertEquals(ResourceType.JS, model.getGroupByName("g1").getResources().get(0).getType());
Assert.assertTrue(model.getGroupByName("g1").getResources().get(1).isMinimize());