### Question:
AnimUtils { public static void marqueeAfterDelay(int delayInMillis, ThemedTextView marqueeView) { new Handler() .postDelayed( () -> { marqueeView.setSelected(true); }, delayInMillis); }  static Interpolator getFastOutSlowInInterpolator(Context context); static void marqueeAfterDelay(int delayInMillis, ThemedTextView marqueeView);  }### Answer:
@Test public void testMarqueeAfterDelay() { ThemedTextView mock = mock(ThemedTextView.class); doCallRealMethod().when(mock).setSelected(anyBoolean()); doCallRealMethod().when(mock).isSelected(); mock.setSelected(false); AnimUtils.marqueeAfterDelay(150, mock); shadowOf(Looper.myLooper()).getScheduler().advanceToLastPostedRunnable(); assertTrue(mock.isSelected()); }