CountingGraphics g = new CountingGraphics(new BufferedImage(1000, 1000, BufferedImage.TYPE_3BYTE_BGR)
.createGraphics());
slopeLine.paintComponent(g);
LineChecker lines = new LineChecker();
lines.require(0, 50, 1000, 550);
lines.check(g.getLines());
MouseEvent release = new MouseEvent(contents, MouseEvent.MOUSE_RELEASED, System.currentTimeMillis(), 0, x3, y3,
xAbs3, yAbs3, 1, false, MouseEvent.BUTTON1);
slopeLine.mouseReleased(release);