### Question:
XMLBuilder { public static int getAttributesLength(final Map<String, String> attributes) { int result = 0; for (final Map.Entry<String, String> e : attributes.entrySet()) { result += e.getKey().length(); result += e.getValue().length(); result += SINGLE_ATTRIBUTE_SYMBOLS_LENGTH; } return result; }  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 getAttributesLength() { final int size = XMLBuilder.getAttributesLength(attributes); assertEquals(6, size); }