@Test
public void shouldReturnErrorForFailedDatabaseCreationInQuery() throws Throwable {

  assertThat(databaseQueryFunction(FAILURE, CURSOR_STRING_FUNCTION)
          .apply(sqlRequest()
              .sql(SQL_QUERY_FOR_ARGUMENT)
              .arguments("value2")
              .compile()).failed(),
      is(true));
}