source: class RuleEntryTest {
  
      private RuleEntry entry;
      private final static byte[] AID_BASIC;
      private final static byte[] HASH_BASIC;
      private final static byte[] RULE_BASIC;
      private final static byte[] AID_BASIC1;
      private final static byte[] HASH_BASIC1;
      private final static byte[] RULE_BASIC1;
      private final static byte[] AID_BASIC2;
      private final static byte[] HASH_BASIC2;
      private final static byte[] RULE_BASIC2;
      private final static byte[] AID_BASIC3;
      private final static byte[] HASH_BASIC3;
      private final static byte[] RULE_BASIC3;
      private final static byte[] AID_BASIC4;
  
      @Test
      public void searchAidHash() throws NoSuchFieldException, IllegalAccessException {
  
target:         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);
      }
  
  }