@Test
public void testCreateOrUpdateSuccess() throws Exception {

    Todo todo = Mockito.mock(Todo.class);
    when(todo.save()).thenReturn(1L);
    assertSame(todo, mTodoRepository.createOrUpdate(todo).toBlocking().single());
}