if(horse.getName()==null||horse.getScore()==0||horse.getBirthday()==null||horse.getRace()==null){thrownewValidationException("All or some required values missing: name, score, birthday, race");
if(horse.getScore()>5||horse.getScore()<1){thrownewValidationException("Score value "+horse.getScore()+" not allowed. The score must be an integer between 1 and 5");}}}