@Test public void testTransformEmptyCursorToBookBorrowing() throws Exception {

    Cursor cursor = mock(Cursor.class);
    when(cursor.moveToFirst()).thenReturn(false);
    List<BookBorrowing> bookBorrowings =
            this.bookBorrowingContentProviderMapper.transform(cursor);
    assertThat(bookBorrowings, is(empty()));
}