public void testAddAndRemoveRoom() throws RoomNumberExistsException, Exception {
        rm.addRoom("TestRoom2", 2, RoomType.DOUBLEROOM);
        Room tmp = null;
        Iterator<Room> it = rm.getRoomList().iterator();
        boolean check = false;
        while (it.hasNext()) {
            Room r2 = it.next();
            if (r2.getName().equals("TestRoom2") && r2.getRoomNumber() == 2) {
                check = true;
                tmp = r2;
            }
        }
        if (!check) {
            throw new Exception();
        }
        rm.removeRoom(tmp);

        it = rm.getRoomList().iterator();
        while (it.hasNext()) {
            Room r2 = it.next();
            if (r2.getRoomNumber() == 2 && r2.getName().equals("TestRoom2")) {
                check = false;
            }
        }
        if (!check) {
            throw new Exception();
        }

    }