}
}
public void testUpdateGetReportingVariables() throws Exception {
ExecHost eh = jgdi.getExecHost("global");
List<String> orgRV = eh.getReportVariablesList();
eh.addReportVariables("cpu");
eh.addReportVariables("np_load_avg");
jgdi.updateExecHost(eh);
try {
ExecHost eh1 = jgdi.getExecHost("global");
List<String> rv = eh1.getReportVariablesList();
assertTrue("reporting variables must contain cpu", rv.contains("cpu"));
assertTrue("reporting variables must contain np_load_avg", rv.contains("np_load_avg"));
} finally {
eh.removeAllReportVariables();
for(String rv: orgRV) {