try {
Lexer lexer = new Lexer(input);
tokens = lexer.tokenizeToStrings();
InputStream in = getAsStream("" + input);
URI uri = URI.createURI("mytestmodel." + getCurrentFileExtension());
XtextResource resource = doGetResource(in, uri);
parseResult = getModel(resource);
errors = resource.getErrors();
warnings = resource.getWarnings();
if (errorCount == 0)
assertEquals("Errors: " + errors, 0, errors.size());
else if (errorCount > 0)
assertTrue("No errors", errors.size() > 0);
if (warningCount >= 0) {