@Test
void expectedReasonMatches() {

    final String reason = UUID.randomUUID()
        .toString();
    final Response response = Response.status(400)
        .entity(reason)
        .build();
    final ClientErrorException actual = new BadRequestException(response);
    final Class<? extends ClientErrorException> expected = actual.getClass();
    assertThat(FailureTypeUtil.matches(expected, actual, reason)).isTrue();
}