### Question:
GadgetSpec { public View getView(String name) { return views.get(name); } GadgetSpec(Uri url, Element doc, String original); @VisibleForTesting  GadgetSpec(Uri url, String xml); protected  GadgetSpec(GadgetSpec spec); OpenSocialVersion getSpecificationVersion(); Uri getUrl(); String getChecksum(); ModulePrefs getModulePrefs(); Map<String,UserPref> getUserPrefs(); Map<String, View> getViews(); ExternalServices getExternalServices(); View getView(String name); Object getAttribute(String key); void setAttribute(String key, Object o); GadgetSpec substitute(Substitutions substituter); GadgetSpec removeUrlViews(); @Override String toString(); static final String DEFAULT_VIEW; static final Locale DEFAULT_LOCALE; static final String DOCTYPE_QUIRKSMODE; }### Answer:
@Test public void testMultipleContentSections() throws Exception { String xml = "<Module>" + "<ModulePrefs title=\"title\"/>" + "<Content type=\"html\" view=\"hello\">hello </Content>" + "<Content type=\"html\" view=\"world\">world</Content>" + "<Content type=\"html\" view=\"hello, test\">test</Content>" + "</Module>"; GadgetSpec spec = new GadgetSpec(SPEC_URL, xml); assertEquals("hello test", spec.getView("hello").getContent()); assertEquals("world", spec.getView("world").getContent()); assertEquals("test", spec.getView("test").getContent()); }