@Test
  public void generateFirstSegmentNameTest() {
    LogSegmentName singleSegmentName = LogSegmentName.generateFirstSegmentName(false);
    assertEquals("Did not get expected name", "", singleSegmentName.toString());
    assertTrue("Should be single segment name", singleSegmentName.isSingleSegment());
    LogSegmentName firstSegmentName = LogSegmentName.fromPositionAndGeneration(0, 0);
    assertEquals("Did not get expected name", firstSegmentName, LogSegmentName.generateFirstSegmentName(true));
  }
Tests correctness of {@link LogSegmentName#generateFirstSegmentName(boolean)} for different numbers of log
segments (including invalid ones).
ambry-store/src/test/java/com/github/ambry/store/LogSegmentNameTest.java