@Test
public void testArtistFetching1() throws IOException {

    /*
    isOnline = true;
    wantArtistImages = true;
     */
    ArtInfo artInfo = ArtInfo.forArtist("alvvays", null);
    //no to wifi
    when(mPreferences.getBoolean(ArtworkPreferences.ONLY_ON_WIFI, true)).thenReturn(false);
    //yes were connected
    NetworkInfo networkInfo = mock(NetworkInfo.class);
    when(networkInfo.isConnectedOrConnecting()).thenReturn(true);
    when(mConnectivityManager.getActiveNetworkInfo()).thenReturn(networkInfo);
    //no to cache
    when(mL2Cache.containsKey(artInfo.cacheKey())).thenReturn(false);
    when(mPreferences.getBoolean(ArtworkPreferences.DOWNLOAD_MISSING_ARTIST_IMAGES, true)).thenReturn(true);
    //prep the server
    mServer.enqueue(new MockResponse().setBody(IOUtils.toString(getClass().getClassLoader()
            .getResourceAsStream("lfm_artist_alvvays.xml"))));
    mServer.enqueue(new MockResponse().setBody(new Buffer().readFrom(getClass().getClassLoader()
            .getResourceAsStream("alvvays_alvvays_thumb.jpg"))));
    mFetcher.fetch(artInfo, mListener);
    verify(mListener).onNext(Matchers.<Bitmap>any());
    verify(mListener).onCompleted();
    verify(mListener, never()).onError(Matchers.<Throwable>any());
    assertThat(mFetcher.originalUri).isEqualTo("http://img2-ak.lst.fm/i/u/ba772c4e45294e41cebccd40acb9e4aa.png");
    verifyZeroInteractions(mContext);
}