final IntVar Z = VariableFactory.enumerated("Z", 1, 2, solver);
Constraint c1 = IntConstraintFactory.arithm(X, "=", Y);
Constraint c2 = IntConstraintFactory.arithm(X, "=", Z);
solver.post(c1);
solver.post(c2);
solver.unpost(c2);
solver.unpost(c1);
solver.set(engine.make(solver));
solver.findAllSolutions();
Assert.assertEquals(solver.getMeasures().getSolutionCount(), 8);
Assert.assertEquals(solver.getNbCstrs(), 0);