@Test
public void testAllowCachingAllowedTypes() throws Exception {

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