### Question:
QueryLocation { public static QueryLocation fromDegrees(double latitude, double longitude) { QueryLocation queryLocation = new QueryLocation(); queryLocation.latitude = Math.toRadians(latitude); queryLocation.longitude = Math.toRadians(longitude); queryLocation.checkBounds(); return queryLocation; }  static QueryLocation fromRadians(double latitude, double longitude); static QueryLocation fromDegrees(double latitude, double longitude); double getLatitude(); double getLongitude();  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testThatOutOfBoundsDegreesThrowsInvalidArgumentException(){ QueryLocation.fromDegrees(INVALID_LAT_DEGREES, INVALID_LNG_DEGREES); }