// add a chartscript as a test data
File testScript = loadFile("configuration/script/testScript.groovy");
LOGGER.info("Test groovy script is " + testScript);
UNREDDChartScript chartScript = new UNREDDChartScript();
chartScript.setAttribute(Attributes.SCRIPTPATH, testScript.getAbsolutePath());
chartScript.addReverseAttribute(ReverseAttributes.STATSDEF, "area_admin1_fc13"); // any one is good
RESTResource chartScriptRes = chartScript.createRESTResource();
chartScriptRes.setName("testChartScript");
// long chartScriptId = geostoreClient.insert(chartScriptRes);
long chartScriptId = gstcu.insert(chartScriptRes);
// Resource fullChartScript = geostoreClient.getResource(chartScriptId);
Resource fullChartScript = gstcu.getGeoStoreClient().getResource(chartScriptId);