@Test(groups = "1s") public void testFail() { Solver s = modelit(); long fl = 50; SearchMonitorFactory.limitFail(s, fl); s.findAllSolutions(); long fc = s.getMeasures().getFailCount(); Assert.assertEquals(fc, fl); }