### Question:
DiagramSet implements BaseDiagramSet { public void setId(Id id) { this.id = id; } DiagramSet();  DiagramSet(final @MapsTo("name") Name name,
                      final @MapsTo("documentation") Documentation documentation,
                      final @MapsTo("id") Id id,
                      final @MapsTo("packageProperty") Package packageProperty,
                      final @MapsTo("processType") ProcessType processType,
                      final @MapsTo("version") Version version,
                      final @MapsTo(ADHOC) AdHoc adHoc,
                      final @MapsTo("processInstanceDescription") ProcessInstanceDescription processInstanceDescription,
                      final @MapsTo("imports") Imports imports,
                      final @MapsTo("executable") Executable executable,
                      final @MapsTo("slaDueDate") SLADueDate slaDueDate);  DiagramSet(final String name); @Override Name getName(); void setName(final Name name); @Override Documentation getDocumentation(); void setDocumentation(final Documentation documentation); @Override Id getId(); void setId(Id id); @Override Package getPackageProperty(); void setPackageProperty(final Package packageProperty); @Override ProcessType getProcessType(); void setProcessType(ProcessType processType); @Override Version getVersion(); void setVersion(final Version version); @Override AdHoc getAdHoc(); void setAdHoc(final AdHoc adHoc); @Override ProcessInstanceDescription getProcessInstanceDescription(); void setProcessInstanceDescription(final ProcessInstanceDescription processInstanceDescription); @Override Imports getImports(); void setImports(Imports imports); @Override Executable getExecutable(); void setExecutable(final Executable executable); @Override SLADueDate getSlaDueDate(); void setSlaDueDate(final SLADueDate slaDueDate); @Override int hashCode(); @Override boolean equals(Object o); static final String ADHOC; }### Answer:
@Test public void testIDInvalid() { tested.setId(new Id(ID_INVALID)); Set<ConstraintViolation<DiagramSet>> violations = this.validator.validate(tested); assertEquals(1, violations.size()); }