public void testInsertTripCommitFailed() throws SQLException, IOException, JSONException {
Waypoint waypoint = new Waypoint(fromLocation, toLocation, mockTripCreator, null, true);
Trip newTrip = new Trip(mockTripCreator,departure,4,waypoint, "");
Trip tripWithPoint = newTrip;
List<Point> points = new ArrayList<Point>();
points.add(new Point(0, 0.0, 0.0, 0, newTrip.getId()));
tripWithPoint.setPoints(points);
// Setup Mocks:
EasyMock.expect(mockJsfUtil.getLoggedInUser()).andReturn(mockTripCreator);