See commented out part of the trackBundlesTest in libs/framework/tst/bundle_context_bundles_tests.cpp