@Test
@OperateOnDeployment("test1")
public void testProcessApplicationsDeployed() {
ProcessApplicationService processApplicationService = BpmPlatform.getProcessApplicationService();
Set<String> processApplicationNames = processApplicationService.getProcessApplicationNames();
// check if the new applications are deployed with allowed names
processApplicationNames.retainAll(Arrays.asList(new String [] {"test1", "test2", "/test1", "/test2"}));
Assert.assertEquals(2, processApplicationNames.size());
for (String appName : processApplicationNames) {
ProcessApplicationInfo processApplicationInfo = processApplicationService.getProcessApplicationInfo(appName);
Assert.assertNotNull(processApplicationInfo);
Assert.assertNotNull(processApplicationInfo.getName());
Assert.assertEquals(1, processApplicationInfo.getDeploymentInfo().size());
}