@Test
  public void testAddAttributeAttributesImplStringObject() {
    final AttributesImpl attributes = new AttributesImpl();
    assertEquals(0, attributes.getLength());

    XmlGeneratorUtils.addAttribute(attributes, "localname", null);
    assertEquals(0, attributes.getLength());

    XmlGeneratorUtils.addAttribute(attributes, "localname", "value");
    assertEquals(1, attributes.getLength());
    assertEquals("localname", attributes.getLocalName(0));
    assertEquals("localname", attributes.getQName(0));
    assertEquals(XMLConstants.NULL_NS_URI, attributes.getURI(0));
    assertEquals("value", attributes.getValue(0));
  }
Test method for {@link XmlGeneratorUtils#addAttribute(AttributesImpl, String, Object)}.
geode-core/src/test/java/org/apache/geode/internal/cache/xmlcache/XmlGeneratorUtilsJUnitTest.java