@Test
public void nonEsExceptionShouldCreateGenericErrorMessage() {

  Exception exception = new Exception(nonEsThrowable);
  ErrorMessage msg =
      ErrorMessageFactory.createErrorMessage(exception, RestStatus.BAD_REQUEST.getStatus());
  assertFalse(msg instanceof ElasticsearchErrorMessage);
}