// Path: extensions/rvadapter/src/main/java/com/google/android/agera/rvadapter/LayoutPresenters.java
// @SuppressWarnings("unchecked")
// @NonNull
// public static LayoutPresenter layout(@LayoutRes int layoutId) {
//   return new Builder(layoutId).build();
// }
// 
// Path: extensions/rvadapter/src/main/java/com/google/android/agera/rvadapter/LayoutPresenters.java
// @SuppressWarnings("unchecked")
// @NonNull
// public static Builder layoutPresenterFor(@LayoutRes int layoutId) {
//   return new Builder(layoutId);
// }


import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import static com.google.android.agera.rvadapter.LayoutPresenters.layout;
import static com.google.android.agera.rvadapter.LayoutPresenters.layoutPresenterFor;
import static com.google.android.agera.rvadapter.test.matchers.HasPrivateConstructor.hasPrivateConstructor;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.mockito.Mockito.verify;
import static org.mockito.MockitoAnnotations.initMocks;
import android.support.annotation.LayoutRes;
import android.view.View;
import com.google.android.agera.Receiver;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
  public void shouldBindCompiledLayout() {
    final LayoutPresenter layoutPresenter =
        layoutPresenterFor(LAYOUT_ID)
            .bindWith(binder)
            .build();

    layoutPresenter.bind(view);

    verify(binder).accept(view);
  }

  @Test
  public void shouldBindCompiledLayoutWithoutBinder() {
    final LayoutPresenter layoutPresenter =
        layoutPresenterFor(LAYOUT_ID)
            .build();

    layoutPresenter.bind(view);
  }

  @Test
  public void shouldBindLayoutWithoutBinder() {
    final LayoutPresenter layoutPresenter = layout(LAYOUT_ID);

    layoutPresenter.bind(view);
  }

  @Test
  public void shouldRecycleViewInCompiledLayout() {
    final LayoutPresenter layoutPresenter =
// Path: extensions/rvadapter/src/main/java/com/google/android/agera/rvadapter/LayoutPresenters.java
// @SuppressWarnings("unchecked")
// @NonNull
// public static LayoutPresenter layout(@LayoutRes int layoutId) {
//   return new Builder(layoutId).build();
// }
// 
// Path: extensions/rvadapter/src/main/java/com/google/android/agera/rvadapter/LayoutPresenters.java
// @SuppressWarnings("unchecked")
// @NonNull
// public static Builder layoutPresenterFor(@LayoutRes int layoutId) {
//   return new Builder(layoutId);
// }


// Path: extensions/rvadapter/src/test/java/com/google/android/agera/rvadapter/LayoutPresentersTest.java
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
import static com.google.android.agera.rvadapter.LayoutPresenters.layout;
import static com.google.android.agera.rvadapter.LayoutPresenters.layoutPresenterFor;
import static com.google.android.agera.rvadapter.test.matchers.HasPrivateConstructor.hasPrivateConstructor;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.mockito.Mockito.verify;
import static org.mockito.MockitoAnnotations.initMocks;
import android.support.annotation.LayoutRes;
import android.view.View;
import com.google.android.agera.Receiver;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;

  public void shouldBindCompiledLayout() {
    final LayoutPresenter layoutPresenter =
        layoutPresenterFor(LAYOUT_ID)
            .bindWith(binder)
            .build();

    layoutPresenter.bind(view);

    verify(binder).accept(view);
  }

  @Test
  public void shouldBindCompiledLayoutWithoutBinder() {
    final LayoutPresenter layoutPresenter =
        layoutPresenterFor(LAYOUT_ID)
            .build();

    layoutPresenter.bind(view);
  }

  @Test
  public void shouldBindLayoutWithoutBinder() {
    final LayoutPresenter layoutPresenter = layout(LAYOUT_ID);

    layoutPresenter.bind(view);
  }

  @Test
  public void shouldRecycleViewInCompiledLayout() {
    final LayoutPresenter layoutPresenter =
        layoutPresenterFor(LAYOUT_ID)