/** * ToString is difficult to test fully because there is no restriction on the format of the * returned String. At least it can be tested that a String is returned and that it contains the * name of a checked in guest. */ @Test public void testToString() { hotel.checkIn(correctPassword, GUEST_NAME_1); assertThat(hotel.toString(), CoreMatchers.containsString(GUEST_NAME_1)); }