@Test
public void testEmptyListOfMachines() throws JAXBException, IOException, SAXException {

    ProcessEngine processEngine = new StandaloneInMemProcessEngineConfiguration().buildProcessEngine();
    try {
        RundeckServlet servlet = new RundeckServlet(processEngine);
        servlet.writeRundeckResourceModelXmlTo(writer);
        writer.flush();
        assertXMLEqual(output.toString(), "<project />");
    } finally {
        processEngine.close();
    }
}