@Test
public void userMatch() {
SyncopeUser user = userDAO.find(1L);
assertNotNull(user);
MembershipCond membershipCond = new MembershipCond();
membershipCond.setRoleId(5L);
assertFalse(searchDAO.matches(user, NodeCond.getLeafCond(membershipCond),
AttributableUtil.getInstance(AttributableType.USER)));
membershipCond.setRoleId(1L);
assertTrue(searchDAO.matches(user, NodeCond.getLeafCond(membershipCond),
AttributableUtil.getInstance(AttributableType.USER)));
}