	@Test
	public void mustRejectAppointmentTypeNameWithXSS() throws Exception {

		String evilName = "<script>alert(1)</script>";
		AppointmentType appointmentTypeEvilName = new AppointmentType(evilName, "", 10);

		appointmentTypeValidator.validate(appointmentTypeEvilName, errors);

		Mockito.verify(errors).rejectValue("name", "appointmentscheduling.AppointmentType.unsafeName.errorMessage");
	}