code: 	private void filterWithParameterForMethod(String methodParam, String expectedMethod)
  			throws IOException, ServletException {
  		MockHttpServletRequest request = new MockHttpServletRequest("POST", "/hotels");
  		if(methodParam != null) {
  			request.addParameter("_method", methodParam);
  		}
  		MockHttpServletResponse response = new MockHttpServletResponse();
  
  		FilterChain filterChain = new FilterChain() {
  
  			@Override
  			public void doFilter(ServletRequest filterRequest,
  					ServletResponse filterResponse) throws IOException, ServletException {
  				assertEquals("Invalid method", expectedMethod,
  						((HttpServletRequest) filterRequest).getMethod());
  			}
  		};
  		this.filter.doFilter(request, response, filterChain);
  	}
  
  