### Question:
ResourceMap { public void add(ResourceID resourceID) { resourceCache.add(resourceID); }  void setDb(DB db); boolean isExist(ResourceID resourceID); void add(ResourceID resourceID); boolean remove(ResourceID resourceID);  }### Answer:
@Test public void TestAdd(){ ResourceMap resourceMap = new ResourceMap(); ResourceID resourceID = ResourceID.newBuilder().setId(ByteString.copyFrom("hello".getBytes())).build(); ResourceID resourceID2 = ResourceID.newBuilder().setId(ByteString.copyFrom("hello1".getBytes())).build(); resourceMap.add(resourceID); resourceMap.add(resourceID2); Asserts.check(resourceMap.isExist(resourceID), "is exist fail"); Asserts.check(resourceMap.remove(resourceID), "is removeSessionFuture fail"); }