while (cleanup.getStatus() != HWISessionItem.WebSessionItemStatus.QUERY_COMPLETE) {
Thread.sleep(1);
}
// test the history is non null object.
HiveHistoryViewer hhv = cleanup.getHistoryViewer();
assertNotNull(hhv);
assertEquals(cleanup.getQueryRet(), 0);
}