NavigationDrawerHeaderView extends BaseRecyclerViewHolder<Void> { public void setHrMode(boolean hrMode) { mFlavor.setText(hrMode ? R.string.drawer_flavor_hr : R.string.drawer_flavor_default); } NavigationDrawerHeaderView(ViewGroup parent); void setHrMode(boolean hrMode);  }
@Test public void should_display_hr_text_in_hr_mode() { boolean hrMode = true; view.setHrMode(hrMode); assertThat(view.mFlavor.getText().toString()).isEqualTo(RuntimeEnvironment.application.getString(R.string.drawer_flavor_hr)); }
@Test public void should_display_nothing_in_normal_mode() { boolean hrMode = false; view.setHrMode(hrMode); assertThat(view.mFlavor.getText().toString()).isEmpty(); }