### Question:
Polygon implements AgnosticShape { public boolean contains(Coordinate candidate) { return testContainmentWithRaycasting(candidate); }  void addPoint(int x, int y); @Override void accept(ShapeVisitor visitor); void translate(int dx, int dy); boolean contains(Coordinate candidate); @Override boolean equals(Object obj); @Override int hashCode(); final Coordinates coordinates; }### Answer:
@Test public void doesNotContainPointBeyond() throws Exception { boolean contains = polygon.contains(new Coordinate(15, 15)); assertThat(contains, is(false)); }
@Test public void containsPointInside() throws Exception { boolean contains = polygon.contains(new Coordinate(7, 7)); assertThat(contains, is(true)); }
@Test public void doesNotContainPointBefore() throws Exception { boolean contains = polygon.contains(new Coordinate(2, 2)); assertThat(contains, is(false)); }