@Test
public void putNullValueThrowsException() {

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