@Test
public void testIsMatch() throws Exception {

    for (Object[] row : data) {
        String resource = (String)row[0];
        String policyValue = (String)row[1];
        boolean optWildcard = (boolean)row[2];
        boolean isRecursive = (boolean)row[3];
        boolean result = (boolean)row[4];
        String user = (String) row[5];
        Map<String, Object> evalContext = new HashMap<>();
        RangerAccessRequestUtil.setCurrentUserInContext(evalContext, user);
        MatcherWrapper matcher = new MatcherWrapper(policyValue, optWildcard, isRecursive);
        assertEquals(getMessage(row), result, matcher.isMatch(resource, evalContext));
    }
}