context.addLoaded(appDesc, uid);
Set<DefDescriptor<?>> dependencies = context.getDefRegistry().getDependencies(uid);
ServerService ss = Aura.getServerService();
StringWriter output = new StringWriter();
ss.writeDefinitions(dependencies, output);
String js = output.toString();
assertFalse("There are syntax errors preventing compression of application javascript",
js.contains("There are errors preventing this file from being minimized!"));
}