verify(mock).setMethod("DELETE");
verifyNoMoreInteractions(mock);
}
public void test_filter_noActionOnPostFormOptions() {
ContainerRequest mock = Mockito.mock(ContainerRequest.class);
when(mock.getMethod()).thenReturn("POST");
Form form = new Form();
form.put("method", Arrays.asList("OPTIONS"));
when(mock.getFormParameters()).thenReturn(form);
HttpMethodFilter test = new HttpMethodFilter();
ContainerRequest result = test.filter(mock);
assertSame(mock, result);
verify(mock).getMethod();
verify(mock).getFormParameters();
verify(mock).setMethod("OPTIONS");