public void test_Serialize_DoubleQuotedString_1() throws Exception {
String original = "before${var}/after${1+2}$$${$var}";
String formatted = doubleQuote("before${var}/after${1 + 2}$$${$var}");
formatted += "\n";
String code = doubleQuote(original);
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 DoubleQuotedString);
String s = serializeFormatted(r.getContents().get(0));
assertEquals("Serialization of interpolated string should produce same result", formatted, s);
}