private void checkNonCreationOfIndexSegmentFile(IndexSegment indexSegment, Offset safeEndPoint)
      throws IOException, StoreException {
    indexSegment.writeIndexSegmentToFile(safeEndPoint);
    assertFalse("Index file should not have been created", indexSegment.getFile().exists());
  }
Checks that an index segment file is not created
@param indexSegment the index segment to write to file
@param safeEndPoint the safe end point to use to the call to {@link IndexSegment#writeIndexSegmentToFile(Offset)}.
@throws IOException
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/IndexSegmentTest.java