TextViewColorAdapter implements ColorAdapter<TextView> { @Override public void applyColor(TextView view, @ColorInt int color) { view.setTextColor(color); }  @Override void applyColor(TextView view, @ColorInt int color); @Override int getColor(TextView view);  }
@Test public void applyColor() throws Exception { int color = Color.BLUE; adapter.applyColor(mockTextView, color); assertThat(mockTextView.getCurrentTextColor(), is(color)); }