NavigationDrawerEntryView extends BaseRecyclerViewHolder<NavigationDrawerEntry> { @Override public void bindData(NavigationDrawerEntry data) { super.bindData(data); mName.setText(data.title); mDrawable = CompatibilityUtils.getDrawable(getContext(), data.drawable); } NavigationDrawerEntryView(ViewGroup parent); @Override void bindData(NavigationDrawerEntry data); void setActivated(boolean activated);  }
@Test public void should_bind_data() { NavigationDrawerEntry entry = HOSTS; view.bindData(entry); assertThat(view.mName.getText().toString()).isEqualTo(RuntimeEnvironment.application.getString(HOSTS.title)); }