Use mock and verify the correct methods are called.