### Question:
MeliTag extends RelativeLayout { final public void setTextColor(@NonNull ColorStateList textColor) { textView.setTextColor(textColor); this.textColor = textColor; } MeliTag(Context context);  MeliTag(Context context, @Nullable AttributeSet attrs);  MeliTag(Context context, @Nullable AttributeSet attrs, int defStyleAttr); @Nullable String getText(); final void setText(@Nullable String text); boolean isThumbnailShown(); final void setThumbnailShown(boolean thumbnailShown); boolean isCloseButtonShown(); final void setCloseButtonShown(boolean closeButtonShown); final void setThumbnailDrawable(int resourceId); final void setThumbnailDrawable(@NonNull String url); final void setCloseButtonDrawable(int resourceId); final void setTextColor(@NonNull ColorStateList textColor); final void setTextColor(int color); @Override final void setBackgroundColor(int color); final void setOnCloseListener(@Nullable OnClickListener l); TextView getTextView(); @NonNull ConstraintLayout getContainer(); @NonNull SimpleDraweeView getThumbnail(); @NonNull ImageView getCloseButton();  }### Answer:
@Test public void testSetTextColor_withColorStateList_shouldSetTextColor() { int currentTextColor = textView.getTextColors() .getColorForState(textView.getDrawableState(), 0); assertNotEquals(context.getResources().getColor(R.color.ui_meli_yellow), currentTextColor); meliTag.setTextColor(ContextCompat.getColorStateList(context, R.color.ui_meli_yellow)); currentTextColor = textView.getTextColors() .getColorForState(textView.getDrawableState(), 0); assertEquals(context.getResources().getColor(R.color.ui_meli_yellow), currentTextColor); }
@Test public void testSetTextColor_withHexColor_shouldSetTextColor() { final int color = Color.parseColor("#AAAAAA"); int currentTextColor = textView.getTextColors() .getColorForState(textView.getDrawableState(), 0); assertNotEquals(color, currentTextColor); meliTag.setTextColor(color); currentTextColor = textView.getTextColors() .getColorForState(textView.getDrawableState(), 0); assertEquals(color, currentTextColor); }