I think it's the test that needs to change here, `EmbeddedCacheManager.getCacheConfiguration()` is documented to return `null` if the cache doesn't exist:

    * @return the configuration for the given cache or null if no such cache is defined