@Override
        public boolean accept(File dir, String name) {
          return name.startsWith(logSegmentName.toString()) && (
              name.endsWith(IndexSegment.INDEX_SEGMENT_FILE_NAME_SUFFIX) || name.endsWith(
                  IndexSegment.BLOOM_FILE_NAME_SUFFIX));
        }
Tests {@link PersistentIndex#cleanupIndexSegmentFilesForLogSegment(String, LogSegmentName)} and makes sure it deletes all
the relevant files and no more.
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/IndexTest.java