ShouldForkResult { private ShouldForkResult(boolean shouldFork, String reason) { this.shouldFork = shouldFork; this.reason = 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 public void testShouldForkResult() { ShouldForkResult shouldForkResult = shouldForkResult(); assertTrue(shouldForkResult.isForkable()); assertEquals(shouldForkResult.getReason(), NO_REASON); }