DynamicParamsInput { public void setDatasetId(String datasetId) { this.datasetId = datasetId; }  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 noPreparationId() { DynamicParamsInput input = new DynamicParamsInput(); input.setDatasetId("dataset#19843"); Set<ConstraintViolation<DynamicParamsInput>> constraintViolations = validator.validate(input); Assert.assertEquals(1, constraintViolations.size()); }