TodoItemViewModel extends BaseObservable implements Serializable { public boolean isCompleted() { return mTodo.isCompleted(); } 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 testIsComplete() throws Exception { when(mTodo.isCompleted()).thenReturn(true); assertTrue(mViewModel.isCompleted()); }