@Test
  public void testSetDocumentLocator() {
    final MockXmlParser mockXmlParser = new MockXmlParser();
    final Locator mockLocator = new Locator() {
      @Override
      public String getSystemId() {
        return null;
      }

      @Override
      public String getPublicId() {
        return null;
      }

      @Override
      public int getLineNumber() {
        return 0;
      }

      @Override
      public int getColumnNumber() {
        return 0;
      }
    };
    mockXmlParser.setDocumentLocator(mockLocator);

    assertSame(mockLocator, mockXmlParser.documentLocator);
  }
Test method for {@link AbstractXmlParser#setDocumentLocator(Locator)}.
geode-core/src/test/java/org/apache/geode/internal/cache/xmlcache/AbstractXmlParserJUnitTest.java