public static void stubGetAndSetContentDescription(DraweeController controller) {
    final String[] contentDescriptionHolder = new String[1];
    doAnswer(
            new Answer<Object>() {
              @Override
              public Object answer(InvocationOnMock invocation) throws Throwable {
                return contentDescriptionHolder[0];
              }
            })
        .when(controller)
        .getContentDescription();
    doAnswer(
            new Answer() {
              @Override
              public Object answer(InvocationOnMock invocation) throws Throwable {
                return contentDescriptionHolder[0] = (String) invocation.getArguments()[0];
              }
            })
        .when(controller)
        // NULLSAFE_FIXME[Not Vetted Third-Party]
        .setContentDescription(any(String.class));
  }
Stubs setContentDescription and getContentDescription methods.

@param controller controller to stub methods of
drawee/src/test/java/com/facebook/drawee/testing/DraweeMocks.java