### Question:
CaseReusableSubprocess extends ReusableSubprocess<CaseReusableSubprocessTaskExecutionSet> { public CaseReusableSubprocessTaskExecutionSet getExecutionSet() { return executionSet; } CaseReusableSubprocess();  CaseReusableSubprocess(final @MapsTo("general") BPMNGeneralSet general,
                                  final @MapsTo("executionSet") CaseReusableSubprocessTaskExecutionSet executionSet,
                                  final @MapsTo("dataIOSet") DataIOSet dataIOSet,
                                  final @MapsTo("backgroundSet") BackgroundSet backgroundSet,
                                  final @MapsTo("fontSet") FontSet fontSet,
                                  final @MapsTo("dimensionsSet") RectangleDimensionsSet dimensionsSet,
                                  final @MapsTo("simulationSet") SimulationSet simulationSet); CaseReusableSubprocessTaskExecutionSet getExecutionSet(); void setExecutionSet(final CaseReusableSubprocessTaskExecutionSet executionSet); @Override int hashCode(); @Override boolean equals(Object o);  }### Answer:
@Test public void testCaseInvalid() { tested.getExecutionSet().setIsCase(new IsCase(CASE_INVALID)); Set<ConstraintViolation<CaseReusableSubprocess>> violations = this.validator.validate(tested); assertEquals(1, violations.size()); }