assertNotNull(processDefinitions);
assertEquals(5, processDefinitions.size());
ProcessDefinition processDefinition = processDefinitions.get(0);
assertEquals("EN", processDefinition.getKey());
assertEquals("Expense Note 2", processDefinition.getName());
assertTrue(processDefinition.getId().startsWith("EN:2"));
assertEquals(2, processDefinition.getVersion());
processDefinition = processDefinitions.get(1);
assertEquals("EN", processDefinition.getKey());
assertEquals("Expense Note 1", processDefinition.getName());
assertTrue(processDefinition.getId().startsWith("EN:1"));
assertEquals(1, processDefinition.getVersion());
processDefinition = processDefinitions.get(2);
assertEquals("IDR", processDefinition.getKey());
assertEquals("Insurance Damage Report 3", processDefinition.getName());
assertTrue(processDefinition.getId().startsWith("IDR:3"));
assertEquals(3, processDefinition.getVersion());
processDefinition = processDefinitions.get(3);
assertEquals("IDR", processDefinition.getKey());
assertEquals("Insurance Damage Report 2", processDefinition.getName());
assertTrue(processDefinition.getId().startsWith("IDR:2"));
assertEquals(2, processDefinition.getVersion());
processDefinition = processDefinitions.get(4);
assertEquals("IDR", processDefinition.getKey());
assertEquals("Insurance Damage Report 1", processDefinition.getName());
assertTrue(processDefinition.getId().startsWith("IDR:1"));
assertEquals(1, processDefinition.getVersion());
deleteDeployments(deploymentIds);
}