The servicemanager is currently private...
https://github.com/doctrine/DoctrineModule/blob/master/src/DoctrineModule/Module.php#L48

Option 1) Remove the test
Option 2) create a getServiceManager() method?