* @throws Exception
*/
@Test
public void test_Serialize_ResourceOneAttribute() throws Exception {
// --with attribute definition
PuppetManifest pp = pf.createPuppetManifest();
EList<Expression> statements = pp.getStatements();
statements.add(createResourceExpression("file", "a resource", "owner", "fred"));
String s = serializeFormatted(pp);
assertEquals("serialization should produce specified result", Sample_ResourceOneAttribute, s);
// --with attribute addition
pp = pf.createPuppetManifest();
statements = pp.getStatements();
statements.add(createResourceExpression(true, "File", "a resource", "owner", "fred"));
s = serializeFormatted(pp);
assertEquals("serialization should produce specified result", Sample_ResourceOneAddAttribute, s);
}