@Test
  public void testCleanFileWhichDoesntExist() throws Exception {
    String filePath = tempDir.getAbsolutePath() + File.separator + "10_14_log";
    assertException(FileStoreException.class, () -> fileStore.cleanLogFile(filePath, STORE_ID), e -> {
      assertEquals("Unexpected exception thrown",
          new FileStoreException("Error while freeing file in path " + filePath + " for store: " + STORE_ID,
              FileStoreException.FileStoreErrorCode.FileStoreFileFailedCleanUp), e);
    });
  }
Tests the behavior of the cleanFile method when the file does not exist.
Expects a FileStoreException to be thrown.
ambry-store/src/test/java/com/github/ambry/store/FileStoreTest.java