### Question:
EmojiTextViewHelper { public void setAllCaps(boolean allCaps) { mHelper.setAllCaps(allCaps); } EmojiTextViewHelper(@NonNull TextView textView); void updateTransformationMethod(); @NonNull InputFilter[] getFilters(@NonNull final InputFilter[] filters); @Nullable TransformationMethod wrapTransformationMethod(
            @Nullable TransformationMethod transformationMethod); void setAllCaps(boolean allCaps);  }### Answer:
@Test public void testSetAllCaps_withTrueSetsTransformationMethod() { mTextView.setTransformationMethod(mock(TransformationMethod.class)); mTextViewHelper.setAllCaps(true); assertThat(mTextView.getTransformationMethod(), instanceOf(EmojiTransformationMethod.class)); }
@Test public void testSetAllCaps_withFalseDoesNotSetTransformationMethod() { mTextView.setTransformationMethod(null); mTextViewHelper.setAllCaps(false); assertNull(mTextView.getTransformationMethod()); }
@Test public void testSetAllCaps_withPasswordTransformationDoesNotSetTransformationMethod() { final PasswordTransformationMethod transformationMethod = new PasswordTransformationMethod(); mTextView.setTransformationMethod(transformationMethod); mTextViewHelper.setAllCaps(true); assertSame(transformationMethod, mTextView.getTransformationMethod()); }