@Test
void httpMethod() {

    assertThat(parser.httpMethod("POST")).isEqualTo(HTTPMethod.POST);
    assertThatThrownBy(() -> parser.httpMethod("TRACK"))
            .isInstanceOf(MethodNotAllowedException.class)
            .hasMessageContaining("method=TRACK");
}