}
public void testParseBpmPlatformXmlOneEngine() {
BpmPlatformXml bpmPlatformXml = parser.createParse()
.sourceUrl(getStreamUrl("bpmplatform_xml_one_engine.xml"))
.execute()
.getBpmPlatformXml();
assertNotNull(bpmPlatformXml);
assertNotNull(bpmPlatformXml.getJobExecutor());
assertEquals(1, bpmPlatformXml.getProcessEngines().size());
JobExecutorXml jobExecutorXml = bpmPlatformXml.getJobExecutor();
assertEquals(1, jobExecutorXml.getJobAcquisitions().size());
JobAcquisitionXml jobAcquisitionXml = jobExecutorXml.getJobAcquisitions().get(0);
assertEquals("default", jobAcquisitionXml.getName());
assertEquals("org.camunda.bpm.engine.impl.jobexecutor.DefaultJobExecutor", jobAcquisitionXml.getJobExecutorClassName());
assertEquals(2, jobAcquisitionXml.getProperties().size());
ProcessEngineXml engineXml = bpmPlatformXml.getProcessEngines().get(0);
assertEquals("engine1", engineXml.getName());
assertEquals("default", engineXml.getJobAcquisitionName());
Map<String, String> properties = engineXml.getProperties();
assertNotNull(properties);