@Test
public void testRemove() throws Exception {

    StoreInfoAndData data = new StoreInfoAndData("result", 10000, true);
    Key key = new Key(1, "eng", FormatType.html, "full_view", true, FormatterWidth._100);
    store.put(key, data);
    assertNotNull(store.get(key));
    assertNotNull(store.getPublished(key));
    assertNotNull(store.getInfo(key));
    assertEquals(1, countFiles(store.getPrivatePath(key)));
    assertEquals(1, countFiles(store.getPublicPath(key)));
    store.remove(key);
    assertNull(store.getInfo(key));
    assertNull(store.getPublished(key));
    assertNull(store.get(key));
    assertEquals(0, countFiles(store.getPrivatePath(key)));
    assertEquals(0, countFiles(store.getPublicPath(key)));
    data = new StoreInfoAndData("result", 10000, false);
    key = new Key(1, "eng", FormatType.html, "full_view", true, FormatterWidth._100);
    store.put(key, data);
    assertEquals(1, countFiles(store.getPrivatePath(key)));
    assertEquals(0, countFiles(store.getPublicPath(key)));
    store.remove(key);
    assertNull(store.getInfo(key));
    assertNull(store.getPublished(key));
    assertNull(store.get(key));
    assertEquals(0, countFiles(store.getPrivatePath(key)));
    assertEquals(0, countFiles(store.getPublicPath(key)));
    store.remove(key); // no exception ? good
}