DefDescriptor<LibraryDef> libDesc = getAuraTestingUtil().createStringSourceDescriptor(null, LibraryDef.class,
null);
Builder builder = new LibraryDefImpl.Builder();
builder.setDescriptor(libDesc);
LibraryDefImpl libraryDef = builder.build();
try {
libraryDef.validateDefinition();
fail("LibraryDef requires an IncludeDef");
} catch (InvalidDefinitionException t) {
assertExceptionMessage(t, InvalidDefinitionException.class,
"aura:library must contain at least one aura:include attribute");
}