assertNotNull(processesXml);
assertEquals(2, processesXml.getProcessEngines().size());
assertEquals(0, processesXml.getProcessArchives().size());
ProcessEngineXml engineXml1 = processesXml.getProcessEngines().get(0);
assertEquals("engine1", engineXml1.getName());
assertEquals("configuration", engineXml1.getConfigurationClass());
assertEquals("datasource", engineXml1.getDatasource());
Map<String, String> properties1 = engineXml1.getProperties();
assertNotNull(properties1);
assertEquals(2, properties1.size());
assertEquals("value1", properties1.get("prop1"));
assertEquals("value2", properties1.get("prop2"));
ProcessEngineXml engineXml2 = processesXml.getProcessEngines().get(1);
assertEquals("engine2", engineXml2.getName());
assertEquals("configuration", engineXml2.getConfigurationClass());
assertEquals("datasource", engineXml2.getDatasource());
// the second engine has no properties
Map<String, String> properties2 = engineXml2.getProperties();
assertNotNull(properties2);
assertEquals(0, properties2.size());
}