@Test
public void tryToSetUnknownStatusCode() {

    final int unknownCode = 42;
    assertThatExceptionOfType(IllegalArgumentException.class)
            .isThrownBy(() -> underTest.statusCode(unknownCode))
            .withMessage("HTTP status code <%s> is unknown!", unknownCode)
            .withNoCause();
}