### Question:
PrintQueryResults { public boolean isValid() { return !this.sizeOnly || !this.complete; } PrintQueryResults();  PrintQueryResults(final boolean sizeOnly, final boolean complete); boolean isValid(); boolean isSizeOnly(); void setSizeOnly(final boolean sizeOnly); boolean isComplete(); void setComplete(final boolean complete);  }### Answer:
@Test public void isValid_sizeTrueCompleteFalse_valid() { assertTrue(sizeTrueCompleteFalse.isValid()); }
@Test public void isValid_sizeTrueCompleteTrue_notValid() { assertFalse(sizeTrueCompleteTrue.isValid()); }
@Test public void isValid_sizeFalseCompleteTrue_valid() { assertTrue(sizeFalseCompleteTrue.isValid()); }
@Test public void isValid_sizeFalseCompleteFalse_valid() { assertTrue(sizeFalseCompleteFalse.isValid()); }