TodoItemViewModel extends BaseObservable implements Serializable { public String getTitle() { return mTodo.getTitle(); } 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 testGetTitle() throws Exception { when(mTodo.getTitle()).thenReturn("title"); assertEquals("title", mViewModel.getTitle()); }