mockBegin();
EasyMock.expect(mockWaypointDAO.getWaypointsForTrip(newTrip, mockGetConnection())).andReturn(new ArrayList<Waypoint>());
EasyMock.expect(mockGoogleUtil.getJsonObj(newTrip,new ArrayList<Waypoint>())).andReturn(jsonObject);
EasyMock.expect(mockGoogleUtil.loadGoogleData(newTrip, jsonObject)).andReturn(tripWithPoint);
mockPointDAO.insertPoints(tripWithPoint.getPoints(), mockGetConnection());
EasyMock.expectLastCall().andThrow(new DAOException("getPoints throws DAOException"));
mockRollback();
mockCloseConnection();
replayMocks();