SetVariablesConfirmation implements Confirmation { @Override public boolean validate() { return setVariableResult != null && setVariableResult.length > 0 && Arrays.stream(setVariableResult) .allMatch(setVariableResult -> setVariableResult.validate()); }  SetVariableResultType[] getSetVariableResult(); void setSetVariableResult(SetVariableResultType[] setVariableResult); @Override boolean validate(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void validate_default_returnsFalse() { boolean expected = false; SetVariablesConfirmation sut = new SetVariablesConfirmation(); boolean result = sut.validate(); Assert.assertEquals(expected, result); }