Set<AuraContext.Mode> modes = Collections.emptySet();
try {
def = vendor.makeClientLibraryDef(null, null, ClientLibraryDef.Type.JS, modes, false,
vendor.makeComponentDefDescriptor("comp"), vendor.makeLocation("f1", 5, 5, 0));
def.validateDefinition();
fail("Should have thrown InvalidDefinitionException for no name");
} catch (Exception e) {
checkExceptionFull(e, InvalidDefinitionException.class, "Must have either a name or url");
}