@Test
public void testStatisticsStrWithNullOpCodeCount() throws IOException {

  String editFilename = nnHelper.generateEdits();
  String outFilename = editFilename + ".stats";
  FileOutputStream fout = new FileOutputStream(outFilename);
  StatisticsEditsVisitor visitor = new StatisticsEditsVisitor(fout);
  OfflineEditsViewer oev = new OfflineEditsViewer();
  String statisticsStr = null;
  if (oev.go(editFilename, outFilename, "stats", new Flags(), visitor) == 0) {
    statisticsStr = visitor.getStatisticsString();
  }
  Assert.assertNotNull(statisticsStr);
  String str;
  Long count;
  Map<FSEditLogOpCodes, Long> opCodeCount = visitor.getStatistics();
  for (FSEditLogOpCodes opCode : FSEditLogOpCodes.values()) {
    count = opCodeCount.get(opCode);
    // Verify the str when the opCode's count is null
    if (count == null) {
      str =
          String.format("    %-30.30s (%3d): %d%n", opCode.toString(),
              opCode.getOpCode(), Long.valueOf(0L));
      assertTrue(statisticsStr.contains(str));
    }
  }
}