"<aura:component>" +
"<aura:clientLibrary name='HTML5Shiv' type='JS' modes='DEV'/>" +
"<aura:clientLibrary name='UIPerf' type='JS' modes='DEV,FTEST'/>" +
"</aura:component>", "myID",
Format.XML);
ComponentDef cmpDef = parser.parse(descriptor, source);
List<ClientLibraryDef> libraries = cmpDef.getClientLibraries();
assertEquals(2, libraries.size());
ClientLibraryDef cld1 = libraries.get(0);
assertEquals(1, cld1.getModes().size());
assertTrue(cld1.getModes().contains(Mode.DEV));