LayoutPresenters { @SuppressWarnings("unchecked") @NonNull public static LayoutPresenter layout(@LayoutRes int layoutId) { return new Builder(layoutId).build(); } private  LayoutPresenters(); @SuppressWarnings("unchecked") @NonNull static Builder layoutPresenterFor(@LayoutRes int layoutId); @SuppressWarnings("unchecked") @NonNull static LayoutPresenter layout(@LayoutRes int layoutId);  }
@Test public void shouldReturnLayoutIdForLayout() { final LayoutPresenter layoutPresenter = layout(LAYOUT_ID); assertThat(layoutPresenter.getLayoutResId(), is(LAYOUT_ID)); }
@Test public void shouldBindLayoutWithoutBinder() { final LayoutPresenter layoutPresenter = layout(LAYOUT_ID); layoutPresenter.bind(view); }
@Test public void shouldHandleRecycleWithoutRecyclerInLayout() { final LayoutPresenter layoutPresenter = layout(LAYOUT_ID); layoutPresenter.recycle(view); }