@Test
public void testSummaryRead() throws Exception {

  // Load data
  EntityGroupFSTimelineStore.AppLogs appLogs =
      store.new AppLogs(mainTestAppId, mainTestAppDirPath,
      AppState.COMPLETED);
  MutableCounterLong summaryLogEntityRead
      = store.metrics.getGetEntityToSummaryOps();
  long numEntityReadBefore = summaryLogEntityRead.value();
  TimelineDataManager tdm
      = PluginStoreTestUtils.getTdmWithStore(config, store);
  appLogs.scanForLogs();
  appLogs.parseSummaryLogs(tdm);
  // Verify single entity read
  PluginStoreTestUtils.verifyTestEntities(tdm);
  // Verify multiple entities read
  TimelineEntities entities = tdm.getEntities("type_1", null, null, null,
      null, null, null, null, EnumSet.allOf(TimelineReader.Field.class),
      UserGroupInformation.getLoginUser());
  assertThat(entities.getEntities()).hasSize(1);
  for (TimelineEntity entity : entities.getEntities()) {
    assertEquals((Long) 123L, entity.getStartTime());
  }
  // Verify metrics
  assertEquals(numEntityReadBefore + 5L, summaryLogEntityRead.value());
}