assertEquals(readJsonFile("wroModel_external.json"), outputStream.toString());
}
private WroModel createWroModelExternalModelStub() {
final WroModel wroModel = new WroModel();
final List<Group> wroGroups = new ArrayList<Group>();
wroGroups.addAll(createSimpleModelStub().getGroups());
final Group extGroup = new Group("external");
final Resource resource = new Resource();
resource.setType(ResourceType.JS);
resource.setUri("https://www.site.com/style.js");
resource.setMinimize(false);
extGroup.addResource(resource);
extGroup.addResource(Resource.create("http://www.site.com/style.css"));
wroGroups.add(extGroup);
wroModel.setGroups(wroGroups);
return wroModel;
}