Two things must be supported for the local mock
ServiceRef now has third enum variant Local, which holds directly the smart pointer to service object ServiceRef::import() to could be possible only by some another wrapper, that should be generated by proc-macro