@Test
public void removeNullThrowsException() {

  FullSegmentEncryptionKeyCache cache = new FullSegmentEncryptionKeyCache(/* maxSize= */ 5);
  try {
    cache.remove(null);
    fail();
  } catch (NullPointerException expected) {
  }
}