// String original = "before${var}/after${1+2}$$${$var}";
// String formatted = doubleQuote("before${var}/after${1 + 2}$$${$var}");
String code = "$a = " + doubleQuote("${1+2}");
String formatted = "$a = " + doubleQuote("${1 + 2}");
formatted += "\n";
XtextResource r = getResourceFromString(code);
EObject result = r.getContents().get(0);
assertTrue("Should be a PuppetManifest", result instanceof PuppetManifest);
result = ((PuppetManifest) result).getStatements().get(0);
assertTrue("Should be a DoubleQuotedString", result instanceof AssignmentExpression);
String s = serializeFormatted(r.getContents().get(0));
if(theDebugAcceptor != null)
System.err.println(theDebugAcceptor.toString());
assertEquals("Serialization of interpolated string should produce same result", formatted, s);
}