WaypointItem extends RelativeLayout { public void setDragDrawable(final Drawable dragIcon) { mDragIcon.setBackground(dragIcon); } WaypointItem(final Context context);  WaypointItem(final Context context, final AttributeSet attrs);  WaypointItem(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  WaypointItem(final Context context, final AttributeSet attrs, final int defStyleAttr, final int defStyleRes); Drawable getRemoveDrawable(); void setRemoveDrawable(final Drawable removeIcon); Drawable getDragDrawable(); void setDragDrawable(final Drawable dragIcon); WaypointEntry getWaypointEntry(); void setWaypointEntry(final WaypointEntry entry); boolean isDragEnabled(); void setDragEnabled(final boolean dragEnabled); boolean isRemoveEnabled(); void setRemoveEnabled(final boolean removeEnabled); void setListener(final WaypointItem.Listener listener);  }
@Test public void testSetDragDrawable() { Drawable drawable = mock(Drawable.class); mWaypointItem.setDragDrawable(drawable); assertEquals(drawable, mWaypointItem.getDragDrawable()); }