Plan { public Date getDateTravel() { return dateTravel; } Plan(); Integer getPlaceId(); void setPlaceId(Integer placeId); String getPlace(); void setPlace(String place); String getAddress(); void setAddress(String address); String getHotel(); void setHotel(String hotel); Date getDateTravel(); void setDateTravel(Date dateTravel); Date getDateAdded(); void setDateAdded(Date dateAdded); String getClimate(); void setClimate(String climate); User getUser(); void setUser(User user); Integer getUserId(); void setUserId(Integer userId); String getEmailId(); void setEmailId(String emailId); String getPlaceUrl(); void setPlaceUrl(String placeUrl); String getHotelUrl(); void setHotelUrl(String hotelUrl); List<Integer> getIdList(); void setIdList(List<Integer> idList);  }
@Test public void testGetDateTravel() { assertEquals("2010-01-31", plan.getDateTravel().toString()); }