@Test
  public void testEmptyElement() throws SAXException {
    final AtomicReference<String> uriRef = new AtomicReference<>();
    final AtomicReference<String> localnameRef = new AtomicReference<>();
    final AtomicReference<String> qNameRef = new AtomicReference<>();
    final AtomicReference<Attributes> attributesRef = new AtomicReference<>();

    final AtomicReference<String> endUriRef = new AtomicReference<>();
    final AtomicReference<String> endLocalnameRef = new AtomicReference<>();
    final AtomicReference<String> endQNameRef = new AtomicReference<>();

    final ContentHandler contentHandler = new MockContentHandler() {
      @Override
      public void startElement(String uri, String localName, String qName, Attributes atts)
          throws SAXException {
        uriRef.set(uri);
        localnameRef.set(localName);
        qNameRef.set(qName);
        attributesRef.set(atts);
      }

      @Override
      public void endElement(String uri, String localName, String qName) throws SAXException {
        endUriRef.set(uri);
        endLocalnameRef.set(localName);
        endQNameRef.set(qName);
      }
    };

    XmlGeneratorUtils.emptyElement(contentHandler, "prefix", "localname", null);

    assertEquals("localname", localnameRef.get());
    assertEquals("prefix:localname", qNameRef.get());
    assertEquals(NULL_NS_URI, uriRef.get());
    assertNull(attributesRef.get());

    assertEquals("localname", endLocalnameRef.get());
    assertEquals("prefix:localname", endQNameRef.get());
    assertEquals(NULL_NS_URI, uriRef.get());
  }
Test method for
{@link XmlGeneratorUtils#emptyElement(ContentHandler, String, String, AttributesImpl)}.
geode-core/src/test/java/org/apache/geode/internal/cache/xmlcache/XmlGeneratorUtilsJUnitTest.java