@Test
    public void testUpdateRoomWithWrongArguments() throws Exception {
        try {
            manager.updateRoom(null);
            fail();
        } catch (IllegalArgumentException e){

        }

        Room room = new Room(-1L, 4, 8, new BigDecimal("40.3"));
        try {
            manager.updateRoom(room);
        } catch (IllegalArgumentException e) {

        }

        room = new Room(1L, -1, 8, new BigDecimal("30.1"));
        try {
            manager.createRoom(room);
            fail("bad capacity");
        } catch (IllegalArgumentException e) {

        }

        room = new Room(1L, 0, 8, new BigDecimal("30.1"));
        try {
            manager.createRoom(room);
            fail("bad capacity");
        } catch (IllegalArgumentException e) {

        }

        room = new Room(1L, 4, 8, null);
        try {
            manager.createRoom(room);
            fail("bad price");
        } catch (IllegalArgumentException e) {

        }

        room = new Room(null, 10, 8, new BigDecimal("30.200"));
        manager.createRoom(room);

        room = new Room(room.getId(), 12, 8, new BigDecimal("40.300"));
        manager.updateRoom(room);
        Room newRoom = manager.findRoomById(room.getId());
        assertEquals(room, newRoom);

    }