* LocalHost can render a simple home page.
* @throws Exception If there is some problem inside
*/
@Test
public void rendersHomePage() throws Exception {
final Host host = new LocalHost();
MatcherAssert.assertThat(
host.isHidden(new URI("/some-uri")),
Matchers.is(false)
);
MatcherAssert.assertThat(
host.authorized("user-name", "user-password"),
Matchers.is(true)
);
MatcherAssert.assertThat(
host,
Matchers.hasToString(Matchers.equalTo("localhost"))
);
MatcherAssert.assertThat(
ResourceMocker.toString(
host.fetch(URI.create("/"), Range.ENTIRE, Version.LATEST)
),
Matchers.notNullValue()
);
}