@Test
public void testParseDomain() throws Exception {

  // Load test data
  TimelineDataManager tdm = PluginStoreTestUtils.getTdmWithMemStore(config);
  DomainLogInfo domainLogInfo = new DomainLogInfo(TEST_ATTEMPT_DIR_NAME,
      TEST_DOMAIN_FILE_NAME,
      UserGroupInformation.getLoginUser().getUserName());
  domainLogInfo.parseForStore(tdm, getTestRootPath(), true, jsonFactory, objMapper,
      fs);
  // Verify domain data
  TimelineDomain resultDomain = tdm.getDomain("domain_1",
      UserGroupInformation.getLoginUser());
  assertNotNull(resultDomain);
  assertEquals(testDomain.getReaders(), resultDomain.getReaders());
  assertEquals(testDomain.getOwner(), resultDomain.getOwner());
  assertEquals(testDomain.getDescription(), resultDomain.getDescription());
}