### Question:
DataObjectReaperConfig { public String validate() { List<String> validationIssues = new LinkedList<>(); if(StringUtils.isBlank(tableName)) validationIssues.add("tableName must be specified"); if(StringUtils.isBlank(idFieldName)) validationIssues.add("idFieldName must be specified"); if(StringUtils.isBlank(timeFieldName)) validationIssues.add("timeFieldName must be specified"); if(reapAgeMinutes < 0) validationIssues.add("reapAgeMinutes must be non-negative"); if(deleteCallDelayMillis < 0) validationIssues.add("deleteCallDelayMillis must be non-negative"); if(scanDelayMillis < 0) validationIssues.add("scanDelayMillis must be non-negative"); if(targetBatchSize < 1) validationIssues.add("targetBatchSize must be 1 or more"); if(objectScanLimit < 1) validationIssues.add("objectScanLimit must be 1 or more"); if(maximumExecutionSeconds < 0) validationIssues.add("maximumExecutionSeconds must be non-negative"); return validationIssues.size() == 0 ? null : String.join(",", validationIssues); } DataObjectReaperConfig(); String getTableName(); int getMaximumExecutionSeconds(); DataObjectReaperConfig setMaximumExecutionSeconds(int maximumExecutionSeconds); DataObjectReaperConfig setTableName(String tableName); String getIdFieldName(); DataObjectReaperConfig setIdFieldName(String idFieldName); int getReapAgeMinutes(); DataObjectReaperConfig setReapAgeMinutes(int reapAgeMinutes); long getDeleteCallDelayMillis(); DataObjectReaperConfig setDeleteCallDelayMillis(long deleteCallDelayMillis); long getScanDelayMillis(); DataObjectReaperConfig setScanDelayMillis(long scanDelayMillis); int getTargetBatchSize(); DataObjectReaperConfig setTargetBatchSize(int targetBatchSize); int getObjectScanLimit(); DataObjectReaperConfig setObjectScanLimit(int objectScanLimit); String getTimeFieldName(); DataObjectReaperConfig setTimeFieldName(String timeFieldName); boolean isLogDeleteOnly(); DataObjectReaperConfig setLogDeleteOnly(boolean logDeleteOnly); String validate();  }### Answer:
@Test(dataProvider = "validateProvider") public void testValidate(DataObjectReaperConfig config, String expectedFieldName) { String result = config.validate(); Assert.assertNotNull(result); Assert.assertTrue(StringUtils.containsIgnoreCase(result, expectedFieldName)); }