@Test
public void testAllowCachingAllowedFormatters() throws Exception {

    final ConfigurableCacheConfig cacheConfig = new ConfigurableCacheConfig();
    cacheConfig.setFormatterIds(Sets.newHashSet("fmtId"));
    assertTrue(cacheConfig.allowCaching(new Key(1, "eng", FormatType.html, "fmtId", true, FormatterWidth._100)));
    assertFalse(cacheConfig.allowCaching(new Key(1, "eng", FormatType.html, "fmtId2", true, FormatterWidth._100)));
}