line.removeLast(1);
CountingGraphics g = paint(new Rectangle(44, 156, 10, 10));
LineChecker c = new LineChecker();
c.allow(19, 180, 39, 160);
c.require(39, 160, 59, 140);
c.allow(59, 140, 79, 120);
c.allow(79, 120, 99, 100);
c.check(g.getLines());
int lineCount = g.getLines().size();
assertTrue(lineCount <= linesPerBox);