### Question:
YellowBoxDelegate { public void onChildViewAdded(View parent, View child) { if (yellowBoxHelper.isYellowBox(parent, child)) { onYellowBoxAdded(parent); } } YellowBoxDelegate();   YellowBoxDelegate(YellowBoxHelper yellowBoxHelper); void onChildViewAdded(View parent, View child); void destroy(); @RestrictTo(RestrictTo.Scope.TESTS) ViewGroup getParent(); @RestrictTo(RestrictTo.Scope.TESTS) List<View> getYellowBoxes();  }### Answer:
@Test public void onChildViewAdded() { uut.onChildViewAdded(parent, yellowBox); verify(yellowBoxHelper).isYellowBox(parent, yellowBox); }