code: public void resultsMustBeElasticsearch(DataTable expectedResults) throws Exception {
          if (getElasticsearchResults() != null) {
              List<List<String>> expectedResultList = expectedResults.raw();
              //Check size
              assertThat(expectedResultList.size() - 1).overridingErrorMessage(
                      "Expected number of columns to be" + (expectedResultList.size() - 1)
                              + "but was " + previousElasticsearchResults.size())
                      .isEqualTo(previousElasticsearchResults.size());
              List<String> columnNames = expectedResultList.get(0);
              for (int i = 0; i < previousElasticsearchResults.size(); i++) {
                  for (int j = 0; j < columnNames.size(); j++) {
                      assertThat(expectedResultList.get(i + 1).get(j)).overridingErrorMessage("In row " + i + "and "
                              + "column " + j
                              + "have "
                              + "been "
                              + "found "
                              + expectedResultList.get(i + 1).get(j) + " results and " + previousElasticsearchResults.get(i).get(columnNames.get(j)).toString() + " were "
                              + "expected").isEqualTo(previousElasticsearchResults.get(i).get(columnNames.get(j)).toString());
                  }
              }
          } else {
              throw new Exception("You must execute a query before trying to get results");
          }
      }
docs: Checks the different results of a previous query to Elasticsearch database
  
  @param expectedResults A DataTable Object with all data needed for check the results. The DataTable must contains at least 2 columns:
  a) A field column from the result
  b) Occurrences column (Integer type)
  <p>
  Example:
  |latitude| longitude|place     |occurrences|
  |12.5    |12.7      |Valencia  |1           |
  |2.5     | 2.6      |Stratio   |0           |
  |12.5    |13.7      |Sevilla   |1           |
  IMPORTANT: All columns must exist
  @throws Exception exception