}
protected void resultIsFine(String path, Configuration configuration)
throws Exception
{
SecurityConfigurationXpp3Writer w = new SecurityConfigurationXpp3Writer();
StringWriter sw = new StringWriter();
w.write(sw, configuration);
String shouldBe = IOUtils.toString(getClass().getResourceAsStream(path + ".result"));
shouldBe = shouldBe.replace("\r\n", "\n");
assertEquals(shouldBe, sw.toString());