@Test
  public void testGetLogSegmentMetadataFilesForDefaultTestStore() throws StoreException, IOException {
    // Arrange
    final BlobStore blobStore = createAndStartBlobStore();

    // Passing includeActiveSegment = false should return 0 log segments
    List<LogInfo> storeLogInfos = blobStore.getLogSegmentMetadataFiles(false);
    assertEquals("Expecting 0 log segments", 0, storeLogInfos.size());

    // Act
    // Passing includeActiveSegment = true should return 1 log segment
    // Local Store creates one single log segment with name ""
    storeLogInfos = blobStore.getLogSegmentMetadataFiles(true);
    assertEquals("Expecting 0 log segments", 1, storeLogInfos.size());

    // Assert
    if (this.isLogSegmented) {
      // When Store Log is segmented, store creates one single log segment with name "0_0"
      assertEquals("Expecting the name of log segment = '0_0'",
          "0_0", storeLogInfos.get(0).getLogSegment().getFileName());
    } else {
      // When Store Log is not segmented, store creates one single log segment with name ""
      assertTrue("Expecting the name of log segment = ''",
          storeLogInfos.get(0).getLogSegment().getFileName().isEmpty());
    }
    assertEquals("Expecting 0 index files", 0, storeLogInfos.get(0).getIndexSegments().size());
    assertEquals("Expecting 0 bloom files", 0, storeLogInfos.get(0).getBloomFilters().size());
  }
Test {@link BlobStore#getLogSegmentMetadataFiles} for default test store.
@throws StoreException
@throws IOException
ambry-store/src/test/java/com/github/ambry/store/BlobStoreTest.java