final URL themeUrl = urls.nextElement();
theme = parser.parse(themeUrl).getThemeDefinitions().get(0);
Assert.assertEquals("test", theme.getName());
Assert.assertNotNull(theme.getResources());
Assert.assertNotNull(theme.getProductionResources());
final ThemeResources resources = theme.getResources();
final ThemeResources productionResources = theme.getProductionResources();
Assert.assertEquals(3, resources.getScriptList().size());
Assert.assertEquals("script/tobago.js", resources.getScriptList().get(0).getName());
Assert.assertEquals("script/tobago-logging.js", resources.getScriptList().get(1).getName());
Assert.assertEquals("script/tobago-console.js", resources.getScriptList().get(2).getName());
Assert.assertEquals(1, productionResources.getScriptList().size());
themeBuilder.addTheme(theme);
} else {
Assert.fail();
}