LabelTypeDTO labelTypeDTO = new LabelTypeDTO("label-type-name",
labelDTOs);
List<InstanceConstraintViolationsDTO> instanceConstraintViolationsList = labelService
.addLabelTypes(new LabelTypeListDTO(Arrays.asList(labelTypeDTO))).instanceConstraintViolationsList;
assertThat(instanceConstraintViolationsList.size(), equalTo(1));
assertThat(labelTypeDAO.getAll().size(), equalTo(previous));
}