### Question:
ReclaimerConfig { public String validate() { List<String> validationIssues = new LinkedList<>(); if(maximumExecutionSeconds < 0) validationIssues.add("maximumExecutionSeconds must be non-negative"); return validationIssues.size() == 0 ? null : String.join(",", validationIssues); }  int getMaximumExecutionSeconds(); ReclaimerConfig setMaximumExecutionSeconds(int maximumExecutionSeconds); boolean getLogReclaimOnly(); ReclaimerConfig setLogReclaimOnly(boolean logReclaimOnly); String validate();  }### Answer:
@Test(dataProvider = "validateProvider") public void testValidate(ReclaimerConfig config, final String EXPECTED_FRAGMENT) { String validationResult = config.validate(); Assert.assertTrue(StringUtils.containsIgnoreCase(validationResult, EXPECTED_FRAGMENT)); }