### Question:
ShardManager { public Shard getShardById(final int shardId) { return shardMap.get(shardId); } ShardManager(); boolean addNewShard(final Shard shard); boolean removeShardById(final int shardId); Shard getShardById(final int shardId); abstract int storeData(final Data data);  }### Answer:
@Test public void testGetShardById() { var shard = new Shard(1); shardManager.addNewShard(shard); var tmpShard = shardManager.getShardById(1); Assert.assertEquals(shard, tmpShard); }