source: class RequestTest {
  
      private @Mock ResponseDelivery mDelivery;
      private @Mock Network mNetwork;
  
      @Test
      public void urlParsing() {
  
target:         UrlParseRequest nullUrl = new UrlParseRequest(null);
          assertEquals(0, nullUrl.getTrafficStatsTag());
          UrlParseRequest emptyUrl = new UrlParseRequest("");
          assertEquals(0, emptyUrl.getTrafficStatsTag());
          UrlParseRequest noHost = new UrlParseRequest("http:///");
          assertEquals(0, noHost.getTrafficStatsTag());
          UrlParseRequest badProtocol = new UrlParseRequest("bad:http://foo");
          assertEquals(0, badProtocol.getTrafficStatsTag());
          UrlParseRequest goodProtocol = new UrlParseRequest("http://foo");
          assertFalse(0 == goodProtocol.getTrafficStatsTag());
      }
  
  }