DueDatePicker extends RelativeLayout { public void setListenerPickDate(ListenerPickDate listenerPickDate) { this.mListenerPickDate = listenerPickDate; } DueDatePicker(Context context);  DueDatePicker(Context context, AttributeSet attrs);  DueDatePicker(Context context, AttributeSet attrs, int defStyleAttr); void setListenerPickDate(ListenerPickDate listenerPickDate); void setDueDate(Date dueDate); Observable<Date> date();  }
@Test public void testClickDueDateNoListener() throws Exception { mDueDatePicker.setListenerPickDate(null); mDayPicker.performClick(); assertViewBackgroundColor(mDayPicker.findViewById(R.id.content), R.color.due_date_disable); }