// initially no applications are deployed:
Assert.assertEquals(0, BpmPlatform.getProcessApplicationService().getProcessApplicationNames().size());
// start a spring application context
AbstractApplicationContext applicationContext = new ClassPathXmlApplicationContext("org/camunda/bpm/engine/spring/test/application/SpringProcessApplicationDeploymentTest-context.xml");
applicationContext.start();
// assert that there is a process application deployed with the name of the process application bean
Assert.assertNotNull(BpmPlatform.getProcessApplicationService()
.getProcessApplicationInfo("myProcessApplication"));