### Question:
Rectangle extends Area { public boolean contains(double latitude, double longitude) { return containsLatitude(latitude) && containsLongitude(longitude); } Rectangle(double topLeftLatitude, double topLeftLongitude, double bottomRightLatitude, double bottomRightLongitude); boolean contains(double latitude, double longitude); boolean contains(Position position); @Override boolean equals(Object obj); Position getBottomRight(); Position getBottomLeft(); double getBottomRightLatitude(); double getBottomRightLongitude(); @Override Rectangle getBoundingBox(); @Override Position getRandomPosition(Random r); Position getTopLeft(); Position getTopRight(); double getTopLeftLatitude(); double getTopLeftLongitude(); @Override int hashCode(); Rectangle immutable(); @Override boolean intersects(Area other); boolean intersects(Circle other); boolean intersects(Rectangle other); @Override String toString(); static Rectangle create(Position topLeft, Position bottomRight); static Rectangle fromJSON(CharSequence string); static final Rectangle ALL; static final MessageSerializer<Rectangle> SERIALIZER; }### Answer:
@Test public void contains() { for (Position p : PALL) { assertTrue(R.contains(p)); } assertFalse(R1.contains(P3)); assertFalse(R1.contains(P6)); assertFalse(R1.contains(P7)); assertFalse(R2.contains(P1)); assertFalse(R2.contains(P4)); assertFalse(R2.contains(P9)); assertFalse(R3.contains(P1)); assertFalse(R3.contains(P2)); assertFalse(R3.contains(P9)); assertFalse(R4.contains(P2)); assertFalse(R4.contains(P4)); assertFalse(R4.contains(P7)); }