### Question:
Room { @Override public String toString() { return "Room{" + "id=" + id + ", roomType=" + roomType + ", price=" + price + ", booked=" + booked + '}'; } Room(int id, String roomType, int price, boolean booked); int getId(); void setId(int id); String getRoomType(); void setRoomType(String roomType); int getPrice(); void setPrice(int price); boolean isBooked(); void setBooked(boolean booked); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testToString() { assertEquals(String.format("Room{id=%s, roomType=%s, price=%s, booked=%s}", room.getId(), room.getRoomType(), room.getPrice(), room.isBooked()), room.toString()); }