// simple check: let path in a string replace
String substString = var + "/additional/path";
System.out.println("Substitute '" + substString + "'");
String newValue = oObj.substituteVariables(substString, true);
System.out.println("Return value '" + newValue + "'");
// 2do: better check for correct substitution
assertTrue("Did not substitute '"
+ substString + "' to '" + newValue
+ "' correctly:", newValue.startsWith(substVal));