[C++] Fix CapabilitiesRegistrarTest
[C++] Fix CapabilitiesRegistrarTest

Refactor code so EXPECT_CALL is used before any other call for the tested object

bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr