@Test
public void testGetMethod() {

  AmbariCsrfProtectionFilter filter = new AmbariCsrfProtectionFilter();
  ContainerRequest containerRequest = createMock(ContainerRequest.class);
  expect(containerRequest.getMethod()).andReturn("GET");
  replay(containerRequest);
  assertEquals(containerRequest, filter.filter(containerRequest));
}