assertEquals(1L, matchingRoles.iterator().next().getId());
}
@Test
public void searchUserByResourceName() throws InvalidSearchConditionException {
ResourceCond ws2 = new ResourceCond();
ws2.setResourceName("ws-target-resource2");
ResourceCond ws1 = new ResourceCond();
ws1.setResourceName("ws-target-resource-list-mappings-2");
NodeCond searchCondition = NodeCond.getAndCond(NodeCond.getNotLeafCond(ws2), NodeCond.getLeafCond(ws1));
assertTrue(searchCondition.isValid());