mocking the network layer.