@Test
public void testSetPublished() throws Exception {

    StoreInfoAndData data = new StoreInfoAndData("result", 10000, true);
    Key key1 = new Key(1, "eng", FormatType.html, "full_view", true, FormatterWidth._100);
    Key key2 = new Key(1, "fre", FormatType.html, "full_view", true, FormatterWidth._100);
    Key key3 = new Key(1, "fre", FormatType.xml, "full_view", true, FormatterWidth._100);
    Key key4 = new Key(1, "fre", FormatType.html, "xml_view", true, FormatterWidth._100);
    Key key5 = new Key(1, "fre", FormatType.html, "xml_view", true, FormatterWidth._100);
    store.put(key1, data);
    store.put(key2, data);
    store.put(key3, data);
    store.put(key4, data);
    store.put(key5, data);
    assertPublished(key1, key2, key3, key4, key5);
    store.setPublished(1, true);
    assertPublished(key1, key2, key3, key4, key5);
    store.setPublished(1, false);
    assertUnpublished(key1, key2, key3, key4, key5);
    store.setPublished(1, false);
    assertUnpublished(key1, key2, key3, key4, key5);
    store.setPublished(1, true);
    assertPublished(key1, key2, key3, key4, key5);
}