Map savedQueries = queryBinding.unmarshal(new InputStreamReader(is));
Map savedQueries = PathQueryBinding.unmarshal(new InputStreamReader(is));
    public void testProcess() throws Exception {        InputStream is = getClass().getClassLoader().getResourceAsStream("PathQueryBindingTest.xml");        Map savedQueries = queryBinding.unmarshal(new InputStreamReader(is));        Map expected = new LinkedHashMap();        //allCompanies        PathQuery allCompanies = new PathQuery(Model.getInstanceByName("testmodel"));        List view = new ArrayList();        view.add("Company");        allCompanies.setView(view);        expected.put("allCompanies", allCompanies);        //managers        PathQuery managers = new PathQuery(Model.getInstanceByName("testmodel"));        PathNode employee = managers.addNode("Employee");        employee.setType("Manager");        expected.put("managers", managers);        //employeesWithOldManagers        PathQuery employeesWithOldManagers = new PathQuery(Model.getInstanceByName("testmodel"));        view = new ArrayList();        view.add("Employee.name");        view.add("Employee.age");        view.add("Employee.department.name");        view.add("Employee.department.manager.age");        employeesWithOldManagers.setView(view);        PathNode age = employeesWithOldManagers.addNode("Employee.department.manager.age");        age.getConstraints().add(new Constraint(ConstraintOp.GREATER_THAN, new Integer(10),                                                true, "age is greater than 10", "age_gt_10"));        expected.put("employeesWithOldManagers", employeesWithOldManagers);        //vatNumberInBag        PathQuery vatNumberInBag = new PathQuery(Model.getInstanceByName("testmodel"));        view = new ArrayList();        view.add("Company");        vatNumberInBag.setView(view);        PathNode vatNumber = vatNumberInBag.addNode("Company.vatNumber");        vatNumber.getConstraints().add(new Constraint(ConstraintOp.IN, "bag1"));        expected.put("vatNumberInBag", vatNumberInBag);        assertEquals(expected, savedQueries);    }