Implemented mock for integration SPI.