ShouldForkResult { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ShouldForkResult that = (ShouldForkResult) o; return shouldFork == that.shouldFork && Objects.equal(reason, that.reason); } private  ShouldForkResult(boolean shouldFork, String reason); static ShouldForkResult shouldForkResult(); static ShouldForkResult shouldNotForkResult(String reason); ShouldForkResult and(ShouldForkResult otherShouldForkResult); boolean isForkable(); String getReason(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String NO_REASON; }
@Test(dataProvider = "testEqualsData") public void testEquals(ShouldForkResult first, ShouldForkResult second) { assertEquals(first, second); }