@Test
public void testConnection() throws Exception {

    mockWebServer.enqueue(new MockResponse().setResponseCode(200).setBody("yay!"));
    SimpleUrlConnectionFactory urlFactory = new SimpleUrlConnectionFactory();
    InputStream inputStream = urlFactory.getStream(Uri.parse(baseUrl.toString()));
    Assert.assertEquals(1, mockWebServer.getRequestCount());
}