class Validator {

    public void checkPlayerInRoom(String id, String roomName) {
        checkRoomName(roomName, CANT_BE_NULL);
        checkPlayerId(id, CANT_BE_NULL);

        if (!playerService.get(id).getRoomName().equals(roomName)) {
            throw new IllegalArgumentException(String.format("Player '%s' is not in room '%s'", id, roomName));
        }
    }

    public  Validator();

}