@Test(expected = ServletException.class)
public void shoudlComplainIfNotInAServletEnviroment() throws IOException, ServletException {

ServletRequest request = mock(ServletRequest.class);
ServletResponse response = mock(ServletResponse.class);

new VRaptor().doFilter(request, response, null);
}