@Test
public void testDeploymentRegistration() {
Set<String> registeredDeploymentsForEngine1 = engine1.getManagementService().getRegisteredDeployments();
Set<String> registeredDeploymentsForDefaultEngine = processEngine.getManagementService().getRegisteredDeployments();
ProcessApplicationInfo pa1Info = getProcessApplicationDeploymentInfo("pa1");
List<ProcessApplicationDeploymentInfo> pa1DeploymentInfo = pa1Info.getDeploymentInfo();
Assert.assertEquals(1, pa1DeploymentInfo.size());
Assert.assertTrue(registeredDeploymentsForEngine1.contains(pa1DeploymentInfo.get(0).getDeploymentId()));
ProcessApplicationInfo pa2Info = getProcessApplicationDeploymentInfo("pa2");
List<ProcessApplicationDeploymentInfo> pa2DeploymentInfo = pa2Info.getDeploymentInfo();
Assert.assertEquals(1, pa2DeploymentInfo.size());
Assert.assertTrue(registeredDeploymentsForDefaultEngine.contains(pa2DeploymentInfo.get(0).getDeploymentId()));
}