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