### Question:
I18nProviderImpl extends AbstractGuavaCacheMBean<String,I18n> implements I18nProvider { protected void activate(final Config config) { final long size = config.maxSizeCount(); final CacheBuilder<Object, Object> cacheBuilder = CacheBuilder.newBuilder() .maximumSize(size) .recordStats(); final long ttl = config.getTtl(); if (ttl != Config.DEFAULT_TTL) { cacheBuilder.expireAfterWrite(ttl, TimeUnit.SECONDS); } cache = cacheBuilder .build(); } I18nProviderImpl(); @Override String translate(final String key, final Resource resource); @Override String translate(final String key, final Locale locale); @Override String translate(final String key, final HttpServletRequest request); @Override I18n i18n(final Resource resource); @Override I18n i18n(final Locale locale); @Override I18n i18n(final HttpServletRequest request);  }### Answer:
@Test public void test_secondary_activate() { when(config.getTtl()).thenReturn(Config.DEFAULT_TTL); when(config.maxSizeCount()).thenReturn(Config.DEFAULT_MAX_SIZE_IN_MB); i18nProvider.activate(config); }