@Test public void onBuild_whenJustPickupPlaceIdProvided_shouldSucceed() throws Exception { new RideRequestParameters.Builder().setPickupPlaceId("home"); }
@Test public void build_whenBothPickupPlaceIdAndCoordinatesProvided_shouldFail() throws Exception { exception.expect(IllegalArgumentException.class); exception.expectMessage("Exactly one of pickup place or pickup coordinates must " + "be specified"); new RideRequestParameters.Builder().setPickupCoordinates(30f, -122f).setPickupPlaceId("home").build(); }