public void testHostValueFilter() throws Exception {
JGDI jgdi = createJGDI();
try {
QHostOptions qhostOptions = new QHostOptions();
List<ExecHost> ehList = jgdi.getRealExecHostList();
for (ExecHost eh : ehList) {
for (String loadValueName : eh.getLoadKeys()) {
String loadValue = eh.getLoad(loadValueName);
ResourceAttributeFilter resourceAttributeFilter = new ResourceAttributeFilter();
resourceAttributeFilter.addValueName(loadValueName);
qhostOptions.setResourceAttributeFilter(resourceAttributeFilter);
QHostResult res = jgdi.execQHost(qhostOptions);
printResult(res);
HostInfo hi = res.getHostInfo(eh.getName());
assertNotNull(hi);
assertNotNull("Resource Value " + loadValueName + " not found", hi.getResourceValue("hl", loadValueName));