### Question:
PiazzaConfiguration { Element createConfigAsXml() { Element piazzaConfigRoot = new Element(XML_ROOT_NAME); piazzaConfigRoot.setAttribute(XML_ATTRIBUTE_NAME_SHOW_ON_FAILURE_ONLY, String.valueOf(showOnFailureOnly)); piazzaConfigRoot.setAttribute(XML_ATTRIBUTE_MAX_PORTRAIT_SIZE, String.valueOf(maxPortraitSize)); return piazzaConfigRoot; } PiazzaConfiguration(@NotNull ServerPaths serverPaths); synchronized void save(); boolean isShowOnFailureOnly(); void setShowOnFailureOnly(boolean showOnFailureOnly); void setTeamCityConfigDir(@NotNull String teamCityConfigDir); void setMaxPortraitSize(int maxPortraitSize); int getMaxPortraitSize();  }### Answer:
@Test public void testRootXml() { Element element = piazzaConfiguration.createConfigAsXml(); assertNotNull(element); assertEquals("piazza", element.getName()); }