assertThat(resource, is(instanceOf(CiEyeResource.class)));
}
@Test public void
redirectsLandscapeResourcesWithoutTrailingSlash() throws IOException {
final Resource resource = engine.resolve(new AddressParser("http://ci-eye/landscapes/myLandscape"));
final Request request = context.mock(Request.class);
final Response response = context.mock(Response.class);
context.checking(new Expectations() {{
oneOf(response).setCode(301);
allowing(response).getOutputStream(); will(returnValue(new ByteArrayOutputStream()));
ignoring(response);
}});
resource.handle(request, response);
context.assertIsSatisfied();
}