private void loadContext(Class<?> configuration, String... environment) { EnvironmentTestUtils.addEnvironment(applicationContext, environment); applicationContext.register(configuration); applicationContext.register(MemcachedCacheAutoConfiguration.class); applicationContext.register(CacheAutoConfiguration.class); applicationContext.refresh(); }