PriorityPicker extends LinearLayout { public void setPriority(Priority priority) { selectPriority(mPriorityViews[priority.ordinal()]); } PriorityPicker(Context context);  PriorityPicker(Context context, AttributeSet attrs);  PriorityPicker(Context context, AttributeSet attrs, int defStyleAttr); void setPriority(Priority priority); Observable<Priority> priority();  }
@Test public void testSetPriority() throws Exception { mPriorityPicker.priority().subscribe(mTestSubscriber); mPriorityPicker.setPriority(Priority.LOW); mTestSubscriber.assertValues(Priority.HIGH, Priority.LOW); }