code: public MockResponse enqueue(SocketPolicy socketPolicy) {
      MockResponse mockResponse = new MockResponse().setSocketPolicy(socketPolicy);
      mockWebServer.enqueue(mockResponse);
      return mockResponse;
    }
docs: Given policy will be enqueued as MockResponse