### Question:
Shard { static int indexOfShard(int idx) { return idx >>> SHARD_SIZE_POWER; }    }### Answer:
@Test public void testIndexOfShard() { for (int i: someIntegers(0)) { assertThat(Shard.indexOfShard(i), equalTo(i / Shard.SHARD_SIZE)); } }