List<ExecHost> ehList = jgdi.getRealExecHostList();
for (ExecHost eh : ehList) {
HostFilter hostFilter = new HostFilter();
hostFilter.addHost(eh.getName());
qhostOptions.setHostFilter(hostFilter);
QHostResult res = jgdi.execQHost(qhostOptions);
printResult(res);
Set<String> hostNames = res.getHostNames();
assertTrue("host " + eh.getName() + " not found", hostNames.contains(eh.getName()));
assertTrue("host global not found", hostNames.contains("global"));
}
} finally {
jgdi.close();