@Test(dataProvider = "testIterableHttpResultSetDP")
public void testHttpResultSet(String query, Map<String, String> queryConf, boolean isResultZipped,
int columnNamesExpected, int rowsExpected) throws Exception {
for (Map.Entry<String, String> e : queryConf.entrySet()) {
client.setConnectionParam(e.getKey(), e.getValue());
}
LensConf conf = new LensConf();
Map<String, String> confProps = new HashMap<>();
confProps.put("custom.property.for.validation", "present");
conf.addProperties(confProps);
QueryHandle handle = client.executeQueryAsynch(query, "testQuery", conf);
client.getStatement().waitForQueryToComplete(handle);
assertTrue(client.getStatement().wasQuerySuccessful());
LensQuery persistedQuery = client.getQueryDetails(handle);
Assert.assertNotNull(persistedQuery.getQueryConf());
Assert.assertEquals(persistedQuery.getQueryConf().getProperty("custom.property.for.validation"), "present");
ResultSet result = null;
boolean isHeaderRowPresent = columnNamesExpected > 0 ? true : false;
result = client.getHttpResultSet(handle);
assertNotNull(result);
validateResult(result, columnNamesExpected, rowsExpected);
}