### Question:
ProgressBarMixin implements Mixin { public boolean isShown() { final View progressBar = templateLayout.findManagedViewById(R.id.suw_layout_progress); return progressBar != null && progressBar.getVisibility() == View.VISIBLE; } ProgressBarMixin(TemplateLayout layout); boolean isShown(); void setShown(boolean shown); ProgressBar peekProgressBar(); void setColor(@Nullable ColorStateList color); @Nullable ColorStateList getColor();  }### Answer:
@Test public void testIsShown() { ProgressBarMixin mixin = new ProgressBarMixin(mTemplateLayout); mixin.setShown(true); assertTrue(mixin.isShown()); mixin.setShown(false); assertFalse(mixin.isShown()); }