BS-6711 : [6.2] searchProcessDeploymentInfos failed when looking for enabled process

- Add test
- Refactor tests
- Remove unused parameters
- Add javadoc
- Fix for Sonar