@Test
public void searchAidHash() throws NoSuchFieldException, IllegalAccessException {

    addItem(AID_BASIC, HASH_BASIC, RULE_BASIC);
    RuleEntry re = RuleEntry.searchAidHash(TestUtils.concatByteArray(AID_BASIC, HASH_BASIC),
            (short) 0, (byte) AID_BASIC.length, (short) AID_BASIC.length, (byte) HASH_BASIC.length);
    assertNotNull(re);
    assertEquals(re.getAidLength(), AID_BASIC.length);
    byte[] aidData = new byte[AID_BASIC.length];
    byte[] hashData = new byte[HASH_BASIC.length];
    byte[] ruleData = new byte[RULE_BASIC.length];
    assertEquals(AID_BASIC.length, re.getAid(aidData, (short) 0));
    assertEquals(HASH_BASIC.length, re.getHash(hashData, (short) 0));
    assertEquals(RULE_BASIC.length, re.getRule(ruleData, (short) 0));
    assertArrayEquals(AID_BASIC, aidData);
    assertArrayEquals(HASH_BASIC, hashData);
    assertArrayEquals(RULE_BASIC, ruleData);
}