### Question:
CaseManagementDiagram implements BPMNDiagram<DiagramSet, ProcessData, AdvancedData> { @Override public DiagramSet getDiagramSet() { return diagramSet; } CaseManagementDiagram();  CaseManagementDiagram(final @MapsTo(DIAGRAM_SET) DiagramSet diagramSet,
                                 final @MapsTo(PROCESS_DATA) ProcessData processData,
                                 final @MapsTo(CASE_MANAGEMENT_SET) CaseManagementSet caseManagementSet,
                                 final @MapsTo("backgroundSet") BackgroundSet backgroundSet,
                                 final @MapsTo("fontSet") FontSet fontSet,
                                 final @MapsTo("dimensionsSet") RectangleDimensionsSet dimensionsSet,
                                 final @MapsTo(ADVANCED_DATA) AdvancedData advancedData); String getCategory(); Set<String> getLabels(); @Override DiagramSet getDiagramSet(); @Override void setDiagramSet(final DiagramSet diagramSet); RectangleDimensionsSet getDimensionsSet(); void setDimensionsSet(final RectangleDimensionsSet dimensionsSet); @Override CaseManagementSet getCaseManagementSet(); @Override void setCaseManagementSet(final CaseManagementSet caseManagementSet); @Override ProcessData getProcessData(); @Override void setProcessData(final ProcessData processData); @Override BackgroundSet getBackgroundSet(); @Override void setBackgroundSet(final BackgroundSet backgroundSet); @Override FontSet getFontSet(); @Override void setFontSet(final FontSet fontSet); @Override BPMNBaseInfo getGeneral(); @Override AdvancedData getAdvancedData(); @Override void setAdvancedData(AdvancedData advancedData); @Override int hashCode(); @Override boolean equals(Object o); @Category
    static final transient String category; static final String DIAGRAM_SET; static final String PROCESS_DATA; static final String ADVANCED_DATA; static final String CASE_MANAGEMENT_SET; }### Answer:
@Test public void testNameInvalid() { tested.getDiagramSet().setName(new Name(NAME_INVALID)); Set<ConstraintViolation<CaseManagementDiagram>> violations = this.validator.validate(tested); assertEquals(1, violations.size()); }
@Test public void testIDInvalid() { tested.getDiagramSet().setId(new Id(ID_INVALID)); Set<ConstraintViolation<CaseManagementDiagram>> violations = this.validator.validate(tested); assertEquals(1, violations.size()); }
@Test public void testPackageInvalid() { tested.getDiagramSet().setPackageProperty(new Package(PACKAGE_INVALID)); Set<ConstraintViolation<CaseManagementDiagram>> violations = this.validator.validate(tested); assertEquals(1, violations.size()); }
@Test public void testVersionInvalid() { tested.getDiagramSet().setVersion(new Version(VERSION_INVALID)); Set<ConstraintViolation<CaseManagementDiagram>> violations = this.validator.validate(tested); assertEquals(1, violations.size()); }