HostPredicate implements Predicate<String> { @Override public boolean test(String host) { return HOST.equals(host); }  @Override boolean test(String host);  }
@Test public void isLocalHost() throws Exception { assertThat(underTest.test(HOST), is(true)); }
@Test public void isNotLocalHost() throws Exception { assertThat(underTest.test(HOST + "foo"), is(false)); }