MockWebServerPlus implements TestRule { public MockWebServer server() { return mockWebServer; } MockWebServerPlus();  MockWebServerPlus(MockWebServer mockWebServer); @Override Statement apply(final Statement base, final Description description); List<MockResponse> enqueue(String... paths); MockResponse enqueue(SocketPolicy socketPolicy); void enqueue(MockResponse response); String url(String path); RecordedRequest takeRequest(); void setDispatcher(Dispatcher dispatcher); MockWebServer server();  }
@Test public void useDefaultMockWebServer() { assertThat(new MockWebServerPlus().server()).isNotNull(); }
@Test public void getMockServerInstance() { assertThat(server.server()).isEqualTo(mockWebServer); }