Implement a simple library management system that allows users to manage books in a library. The functionality to be developed includes the following:
Book Class:
Create a Book class with the following attributes:
title (string): The title of the book.
author (string): The author of the book.
isbn (string): The International Standard Book Number (ISBN) of the book.
available (boolean): Indicates if the book is currently available for borrowing (default should be true).
Library Class:
Create a Library class with the following methods:
add_book(book: Book): Accepts a Book object and adds it to the library's collection.
remove_book(isbn: str): Accepts an ISBN and removes the corresponding book from the library's collection. If the book is not present, it should raise a ValueError.
borrow_book(isbn: str): Accepts an ISBN of a book. If the book is available, it marks it as not available and returns the book object. If the book is not available or does not exist, it should raise an Exception.
return_book(book: Book): Accepts a Book object, marks it as available again in the collection, and should raise a ValueError if the book does not exist in the library's collection.
list_available_books(): Returns a list of all currently available books in the library.
Testing Requirements:
Ensure that your implementation passes the provided unit tests that check each of the specified functionalities above.
Handle all exceptions appropriately and ensure that the methods behave as specified in the requirements.