Check the stub is called.