Result { public URI getResource() { return resource; } Result(@Nonnull URI resource, boolean allowed); URI getResource(); boolean isAllowed();  }
@Test public void givenValidURI_whenGetResource_thenResultsEqualsExpected() { Result result = new Result(VALID_RESOURCE, true); assertThat(result.getResource(), equalTo(VALID_RESOURCE)); }