Todo extends SugarRecord implements Serializable { public boolean isCompleted() { return completed; } Todo();  Todo(String title, Date dueDate, boolean completed, Priority priority); void switchComplete(); Priority getPriority(); void setPriority(Priority priority); String getTitle(); void setTitle(String title); Date getDueDate(); void setDueDate(Date dueDate); boolean isCompleted(); void setCompleted(boolean completed); @Override boolean equals(Object object);  }
@Test public void testIsCompleted() throws Exception { assertTrue(mTodo.isCompleted()); }
@Test public void testDefaultCompleted() throws Exception { mTodo = new Todo.Builder("title", Priority.MED) .build(); assertFalse(mTodo.isCompleted()); }