public void remove(InodeView inode) {
    TtlBucket bucket = getBucketContaining(inode);
    if (bucket != null) {
      bucket.removeInode(inode);
    }
  }
@Test
  public void remove() {
    mBucketList.insert(BUCKET1_FILE1);
    mBucketList.insert(BUCKET1_FILE2);
    mBucketList.insert(BUCKET2_FILE);

    List<TtlBucket> expired = pollSortedExpiredBuckets(BUCKET1_END);
    assertExpired(expired, 0, BUCKET1_FILE1, BUCKET1_FILE2);
    mBucketList.insert(BUCKET1_FILE1);
    mBucketList.insert(BUCKET1_FILE2);

    mBucketList.remove(BUCKET1_FILE1);
    expired = pollSortedExpiredBuckets(BUCKET1_END);
    // Only the first bucket should expire, and there should be only one BUCKET1_FILE2 in it.
    assertExpired(expired, 0, BUCKET1_FILE2);
    mBucketList.insert(BUCKET1_FILE2);

    mBucketList.remove(BUCKET1_FILE2);
    expired = pollSortedExpiredBuckets(BUCKET1_END);
    // Only the first bucket should expire, and there should be no files in it.
    assertExpired(expired, 0); // nothing in bucket 0.

    expired = pollSortedExpiredBuckets(BUCKET2_END);
    // Current bucket should expire.
    assertExpired(expired, 0, BUCKET2_FILE);

    // No bucket should exist now.
    expired = pollSortedExpiredBuckets(BUCKET2_END);
    Assert.assertEquals(0, expired.size());
  }