assertEquals("specs/simple/spec.json", spec.getPathToSpec());
}
@Test
public void testComplexSpec() throws Exception {
GadgetSpec spec = new DefaultGadgetSpec("specs/complex/spec.json");
assertEquals("Complex Test", spec.getTitle());
assertEquals(false, spec.isDefault());
assertNotNull(spec.getGadgetResource());
assertEquals("GadgetContent", spec.getGadgetResource().getContent());
GadgetResource eeResource = spec.getEEResource();
assertNotNull(eeResource);
Map<String, GadgetResource> cssResources = spec.getCssResources();
Map<String, GadgetResource> htmlResources = spec.getHtmlResources();
Map<String, GadgetResource> jsResources = spec.getJsResources();
assertNotNull(cssResources);
assertNotNull(htmlResources);
assertNotNull(jsResources);