@Test
public void shouldGetValuesForDatabaseQuery() throws Throwable {

  assertThat(databaseQueryFunction(databaseSupplier, CURSOR_STRING_FUNCTION)
          .apply(sqlRequest()
              .sql(SQL_QUERY)
              .compile()).get(),
      contains("value1", "value2", "value3"));
}