public static BadRequestException create(String... errorMessages) {
    return create(asList(errorMessages));
  }
@Test
  public void fail_when_creating_exception_with_one_empty_element() {
    assertThatThrownBy(() -> BadRequestException.create(asList("error", "")))
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessage("Message cannot be empty");
  }