@Test public void testTransformBookBorrowingToContentValues() throws Exception {

    ContentValues generatedContentValues =
            this.bookBorrowingContentProviderMapper.transform(this.testBookBorrowing);
    long bookId = generatedContentValues.getAsLong(LendingEntry.COLUMN_BOOK_ID);
    String borrowerContactUri =
            generatedContentValues.getAsString(LendingEntry.COLUMN_CONTACT_URI);
    Date borrowingDate =
            getDateFromDb(generatedContentValues.getAsString(LendingEntry.COLUMN_LENDING_DATE));
    assertThat(bookId, equalTo(this.testBookBorrowing.getBorrowedBook().getId()));
    assertThat(borrowerContactUri,
            equalTo(this.testBookBorrowing.getBorrower().getContactInformationUri()));
    assertThat(borrowingDate, equalTo(this.testBookBorrowing.getLendingDate()));
}