avoid warning when stubbing and spying a method