private static void assertMatchOnTags(Builder requestBuilder, String expected) {
    assert expected.length() == TEST_TAGS.length;
    // Marshal + unmarshal
    Request request = Builder.create().fromProtoRequest(requestBuilder.build().toProtoRequests().get(0)).build();
    StringBuilder sb = new StringBuilder();
    for (int i = 0; i < TEST_TAGS.length; ++i) {
      sb.append(request.isTagMatch(TEST_TAGS[i]) ? '1' : '0');
    }
    assertEquals(expected, sb.toString());
  }
Test cases for proactive LLAP cache eviction.
llap-server/src/test/org/apache/hadoop/hive/llap/cache/TestProactiveEviction.java