@Test
public void shouldStoreShards() throws IOException {

  storage.runInTransactionWithRetries(tx -> {
    Shard shard1 = Shard.create("res1", 0, 1);
    Shard shard2 = Shard.create("res1", 1, 1);
    tx.store(shard1);
    tx.store(shard2);
    return null;
  });
  assertThat(storage.shardsForCounter("res1").size(), is(2));
}