### Question:
MeliTag extends RelativeLayout { @Override final public void setBackgroundColor(int color) { ((GradientDrawable) container.getBackground()).setColor(color); containerColor = ColorStateList.valueOf(color); } 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 testSetBackgroundColor() { final int color = Color.parseColor("#00FF00"); meliTag.setBackgroundColor(color); ColorStateList colorStateList = ReflectionHelpers.getField(meliTag, "containerColor"); int actualColor = colorStateList.getColorForState(container.getBackground().getState(), 0); assertEquals(actualColor, color); }