DynamicParamsInput { public void setPreparationId(String preparationId) { this.preparationId = preparationId; }  String getPreparationId(); void setPreparationId(String preparationId); String getDatasetId(); void setDatasetId(String datasetId); String getColumnId(); void setColumnId(String columnId); String getStepId(); void setStepId(String stepId);  }
@Test public void noDataSetId() { DynamicParamsInput input = new DynamicParamsInput(); input.setPreparationId("prep#98435"); Set<ConstraintViolation<DynamicParamsInput>> constraintViolations = validator.validate(input); Assert.assertEquals(1, constraintViolations.size()); }