@Test
public void testDeleteSuccess() throws Exception {

    Todo todo = Mockito.mock(Todo.class);
    when(todo.delete()).thenReturn(true);
    when(Todo.findById(Todo.class, 1L)).thenReturn(todo);
    assertTrue(mTodoRepository.delete(1L).toBlocking().single());
}