}
private void setUpPermissionQuery(int projectId, String permissionName, String resourceType, int resourceId) {
ArrayList results = new ArrayList();
results.add(new Object[]{new Integer(projectId), new Permission(resourceType,resourceId,0,permissionName)});
mockProjectPermissionQuery = new MockQuery();
mockProjectPermissionQuery.listReturn = results;
support.hibernateSession.getNamedQueryReturnMap.put("security.role.permissions",mockProjectPermissionQuery);
results = new ArrayList();
results.add(new Permission(resourceType,resourceId,0,permissionName));
mockPersonPermissionQuery = new MockQuery();
mockPersonPermissionQuery.listReturn = results;
support.hibernateSession.getNamedQueryReturnMap.put("security.person.permissions",mockPersonPermissionQuery);
}