}
@Test
public void testIntersectsOut() {
ISquaredShape model = getShape();
final double thickness = 3.;
model.setPosition(10, -20);
model.setWidth(100);
model.setThickness(thickness);
model.setBordersPosition(BorderPos.OUT);
model.setHasDbleBord(false);
view.update();
assertFalse(view.intersects(new Rectangle2D.Double(15, -43, 10, 10)));
assertFalse(view.intersects(new Rectangle2D.Double(113, -25, 10, 10)));
assertFalse(view.intersects(new Rectangle2D.Double(15, -17, 10, 10)));
assertFalse(view.intersects(new Rectangle2D.Double(-3, -25, 10, 10)));
assertTrue(view.intersects(new Rectangle2D.Double(15, -42, 100, 100)));
assertTrue(view.intersects(new Rectangle2D.Double(112, -25, 10, 10)));
assertTrue(view.intersects(new Rectangle2D.Double(15, -18, 10, 10)));
assertTrue(view.intersects(new Rectangle2D.Double(-2, -25, 10, 10)));
assertFalse(view.intersects(new Rectangle2D.Double(10, -30, 100, 10)));
model.setFilled(true);
assertTrue(view.intersects(new Rectangle2D.Double(10, -30, 100, 10)));
}