### Question:
XMLBuilder { public static int getBasicElementLength(final String name) { return ELEMENT_SYMBOLS_LENGTH + 2 * name.length(); }  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 getBasicElementLength() { final int size = XMLBuilder.getBasicElementLength("x"); assertEquals(7, size); }
@Test public void getBasicElementLength_withAttributes() { final int size = XMLBuilder.getBasicElementLength("x", attributes); assertEquals(13, size); }