@Override
  public TagPosition findTag(int bucketIndex, int tag) {
    for (int slotIndex = 0; slotIndex < mTagsPerBucket; slotIndex++) {
      if (readTag(bucketIndex, slotIndex) == tag) {
        return new TagPosition(bucketIndex, slotIndex, CuckooStatus.OK);
      }
    }
    return new TagPosition(-1, -1, CuckooStatus.FAILURE_KEY_NOT_FOUND);
  }
@Test
  public void findTagTest() {
    CuckooTable cuckooTable = createCuckooTable();
    Random random = new Random();
    for (int i = 0; i < NUM_BUCKETS; i++) {
      for (int j = 0; j < TAGS_PER_BUCKET; j++) {
        int tag = random.nextInt(0xff);
        cuckooTable.writeTag(i, j, tag);
        assertEquals(CuckooStatus.OK, cuckooTable.findTag(i, tag).getStatus());
      }
    }
  }