@Test(expectedExceptions = NullPointerException.class, expectedExceptionsMessageRegExp = "loader returned null value")
public void testDisallowsNulls()
{

    new ThreadLocalCache<>(10, key -> null).get("foo");
}