### Question:
TextStyleBuilder { void applyStyle(@NonNull TextView textView) { for (Map.Entry<TextStyle, Object> entry : values.entrySet()) { switch (entry.getKey()) { case SIZE: { final float size = (float) entry.getValue(); applyTextSize(textView, size); } break; case COLOR: { final int color = (int) entry.getValue(); applyTextColor(textView, color); } break; case FONT_FAMILY: { final Typeface typeface = (Typeface) entry.getValue(); applyFontFamily(textView, typeface); } break; case GRAVITY: { final int gravity = (int) entry.getValue(); applyGravity(textView, gravity); } break; case BACKGROUND: { if (entry.getValue() instanceof Drawable) { final Drawable bg = (Drawable) entry.getValue(); applyBackgroundDrawable(textView, bg); } else if (entry.getValue() instanceof Integer) { final int color = (Integer) entry.getValue(); applyBackgroundColor(textView, color); } } break; case TEXT_APPEARANCE: { if (entry.getValue() instanceof Integer) { final int styleAppearance = (Integer)entry.getValue(); applyTextAppearance(textView, styleAppearance); } } break; } } }  void withTextSize(@NonNull float size); void withTextColor(@NonNull int color); void withTextFont(@NonNull Typeface textTypeface); void withGravity(@NonNull int gravity); void withBackgroundColor(@NonNull int background); void withBackgroundDrawable(@NonNull Drawable bgDrawable); void withTextAppearance(@NonNull int textAppearance);  }### Answer:
@Test public void testApplyStyleShouldCallNoOneApplyMethod() { final MockTextStyleBuilder builder = new MockTextStyleBuilder(); final TextView textView = Mockito.mock(TextView.class); builder.applyStyle(textView); Assert.assertFalse(builder.textColorApplied); Assert.assertFalse(builder.textSizeApplied); Assert.assertFalse(builder.gravityApplied); Assert.assertFalse(builder.textFontApplied); Assert.assertFalse(builder.backgroundColorApplied); Assert.assertFalse(builder.textAppearanceApplied); Assert.assertFalse(builder.backgroundDrawableApplied); }