TodoItemViewModel extends BaseObservable implements Serializable { public Priority getPriority() { return mTodo.getPriority(); } TodoItemViewModel(Todo todo); Todo getTodo(); ObservableInt getActionVisibility(); ObservableInt getDisableVisibility(); ObservableBoolean getEnableState(); ObservableInt getDividerVisibility(); void setTodo(Todo todo); void resetState(); void switchEnableWhenNotChoose(); void switchActionVisibility(); boolean isCompleted(); boolean actionShowing(); float getOpacity(); String getTitle(); String getDueDate(); Priority getPriority();  }
@Test public void testGetPriorityHigh() throws Exception { when(mTodo.getPriority()).thenReturn(Priority.HIGH); assertEquals(Priority.HIGH, mViewModel.getPriority()); }