@Test
void illegalXForwardedFor() {

    assertThat(parser.parse("10.0.0.1", ",108.0.0.1,10.0.0.1")).isEqualTo("108.0.0.1");
    assertThat(parser.parse("10.0.0.1", "text , 108.0.0.1, 10.0.0.1")).isEqualTo("108.0.0.1");
    assertThatThrownBy(() -> parser.parse("10.0.0.1", "text , 10.0.0.1"))
            .isInstanceOf(BadRequestException.class)
            .hasMessageContaining("invalid client ip address");
}