please use #ifdef to handle switching between mock and real service