### Question:
ValidationTask { AnalyzeTask validate() { ValidationResult results = validator.validate(lhs, rhs); return new AnalyzeTask(results, lowerer); }    }### Answer:
@Test public void test() { int columnPairs = 4; Collection<Rhs> rhs = Arrays .asList(Rhs.builder().rhsAttr(0).threshold(1.0).lowerBound(0.0).build(), Rhs.builder().rhsAttr(1).threshold(1.0).lowerBound(0.0).build()); MDSite lhs = new MDSiteImpl(columnPairs); RhsResult expected1 = RhsResult.builder() .rhsAttr(0) .threshold(0.5) .violations(Collections.emptyList()) .validAndMinimal(false) .build(); RhsResult expected2 = RhsResult.builder() .rhsAttr(1) .threshold(0.6) .violations(Collections.emptyList()) .validAndMinimal(true) .build(); when(validator.validate(lhs, rhs)) .thenReturn(new ValidationResult(Mockito.mock(LhsResult.class), Arrays.asList(expected1, expected2))); ValidationTask task = createTask(lhs, rhs); AnalyzeTask analyzeTask = task.validate(); ValidationResult result = analyzeTask.getResult(); assertThat(result.getRhsResults()).contains(expected1); assertThat(result.getRhsResults()).contains(expected2); }