// Path: app/src/main/java/com/mypodcasts/repositories/models/Feed.java
// public class Feed implements Serializable {
//   private String id;
//   private String title;
//   private Image image;
//   private List<Episode> episodes;
// 
//   public String getId() {
//     return id;
//   }
// 
//   public String getTitle() {
//     return title;
//   }
// 
//   public Image getImage() {
//     return image;
//   }
// 
//   public List<Episode> getEpisodes() {
//     return episodes;
//   }
// 
// }


import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.mypodcasts.repositories.models.Feed;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import java.util.List;
import static java.lang.String.valueOf;
import static java.util.Arrays.asList;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.robolectric.Robolectric.buildActivity;
package com.mypodcasts;






@RunWith(RobolectricTestRunner.class)
@Config(constants = BuildConfig.class)
public class FeedsAdapterTest {

  LayoutInflater spiedLayoutInflater;
  View recycledView;

  ViewGroup parent;
  int firstPosition = 0;

  @Before
  public void setup() {
    Activity context = buildActivity(Activity.class).create().get();
    spiedLayoutInflater = spy(context.getLayoutInflater());

    recycledView = null;
    parent = new ViewGroup(context) {
      @Override
      protected void onLayout(boolean changed, int l, int t, int r, int b) {
      }
    };
  }

// Path: app/src/main/java/com/mypodcasts/repositories/models/Feed.java
// public class Feed implements Serializable {
//   private String id;
//   private String title;
//   private Image image;
//   private List<Episode> episodes;
// 
//   public String getId() {
//     return id;
//   }
// 
//   public String getTitle() {
//     return title;
//   }
// 
//   public Image getImage() {
//     return image;
//   }
// 
//   public List<Episode> getEpisodes() {
//     return episodes;
//   }
// 
// }


// Path: app/src/test/java/com/mypodcasts/FeedsAdapterTest.java
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.mypodcasts.repositories.models.Feed;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import java.util.List;
import static java.lang.String.valueOf;
import static java.util.Arrays.asList;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.robolectric.Robolectric.buildActivity;

package com.mypodcasts;






@RunWith(RobolectricTestRunner.class)
@Config(constants = BuildConfig.class)
public class FeedsAdapterTest {

  LayoutInflater spiedLayoutInflater;
  View recycledView;

  ViewGroup parent;
  int firstPosition = 0;

  @Before
  public void setup() {
    Activity context = buildActivity(Activity.class).create().get();
    spiedLayoutInflater = spy(context.getLayoutInflater());

    recycledView = null;
    parent = new ViewGroup(context) {
      @Override
      protected void onLayout(boolean changed, int l, int t, int r, int b) {
      }
    };
  }

  private FeedsAdapter givenAdapaterWith(List<Feed> feeds) {