### Question:
XMLBuilder { public XMLBuilder startElement(final String name, final Map<String, String> attributes) { stack.push(name); builder.append("<"); builder.append(name); for (final Map.Entry<String, String> e : attributes.entrySet()) { builder.append(" "); builder.append(e.getKey()); builder.append("=\""); builder.append(e.getValue()); builder.append("\""); } builder.append(">"); emptyElementInProgress = true; return this; }  static int getAttributesLength(final Map<String, String> attributes); static int getBasicElementLength(final String name); static int getBasicElementLength(final String name, final Map<String, String> attributes); XMLBuilder startElement(final String name, final Map<String, String> attributes); XMLBuilder startElement(final String name); XMLBuilder endElement(); XMLBuilder addElement(final String name, final Map<String, String> attributes, final String text); XMLBuilder addElement(final String name, final Map<String, String> attributes); XMLBuilder addElement(final String name, final String text); XMLBuilder addElement(final String name); @Override String toString(); static final String XML_VERSION; }### Answer:
@Test public void emptyElement() { builder.startElement("x"); test("<x />"); }