public static BadRequestException create(String... errorMessages) {
    return create(asList(errorMessages));
  }
@Test
  public void fail_when_creating_exception_with_empty_list() {
    assertThatThrownBy(() -> BadRequestException.create(Collections.emptyList()))
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessage("At least one error message is required");
  }