}
@Test
public void test_Serialize_MatchingExpression() {
PuppetManifest pp = pf.createPuppetManifest();
MatchingExpression me = pf.createMatchingExpression();
LiteralRegex regex = pf.createLiteralRegex();
regex.setValue("/[a-z]*/");
VariableExpression v = pf.createVariableExpression();
v.setVarName("$x");
me.setLeftExpr(v);
me.setOpName("=~");
me.setRightExpr(regex);
pp.getStatements().add(me);
String s = serializeFormatted(pp);
assertEquals("serialization should produce specified result", Sample_Match1, s);
me.setOpName("!~");
s = serializeFormatted(pp);
assertEquals("serialization should produce specified result", Sample_Match2, s);
}