DmdlSourceResource repo = new DmdlSourceResource(Arrays.asList(resource), Charset.forName("UTF-8"));
ClassLoader loader = ExcelTesterRoot.class.getClassLoader();
AnalyzeTask task = new AnalyzeTask(testName.getMethodName(), loader);
try {
DmdlSemantics results = task.process(repo);
ModelDeclaration decl = results.findModelDeclaration(model);
assertThat(dmdl + ":" + model, decl, not(nullValue()));
return decl;
} catch (IOException e) {
throw new AssertionError(e);
}