assertEquals(LOCAL_CONTENT, spec.getView(GadgetSpec.DEFAULT_VIEW).getContent());
}
@Test
public void manifestFetchedByVersion() throws Exception {
ApplicationManifest manifest
= new ApplicationManifest(MANIFEST_URI, XmlUtil.parse(MANIFEST_XML));
specFactory.cache.addElement(MANIFEST_URI, manifest, 1000);
GadgetSpec cachedSpec = new GadgetSpec(ALT_SPEC_URL, ALT_LOCAL_SPEC_XML);
specFactory.cache.addElement(ALT_SPEC_URL, cachedSpec, 1000);