@@ -0,0 +1,1344 @@
+package com.twu.biblioteca.library;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.*;%0A%0Apublic class BookAdministratorTest %7B%0A%0A    private BookAdministrator bookAdministrator;%0A%0A    @Before%0A    public void setup() %7B%0A        bookAdministrator = new BookAdministrator();%0A    %7D%0A%0A    @Test%0A    public void testGetBookById() throws Exception %7B%0A        Book testBook = BookBuilder.newBook().id(3).bookName(%22Head First Java, 2nd Edition%22).author(%22Kathy Sierra%22).yearPublish(%222005%22).build();%0A        Book book = bookAdministrator.getBookById(3);%0A        assertThat(book.toString(), is(testBook.toString()));%0A    %7D%0A%0A    @Test%0A    public void testRemoveBookById() throws Exception %7B%0A        int originalBookSize = bookAdministrator.getBookMap().size();%0A        assertThat(bookAdministrator.removeBookById(1), is(true));%0A%0A        int removedBookSize = bookAdministrator.getBookMap().size();%0A        assertThat(originalBookSize, is(removedBookSize + 1));%0A    %7D%0A%0A    @Test%0A    public void testFindByNotExistedId() throws Exception %7B%0A        Book book = bookAdministrator.getBookById(12);%0A        assertThat(book == null, is(true));%0A    %7D%0A%0A    @Test%0A    public void testRemoveByNotExistedId() throws Exception %7B%0A        assertThat(bookAdministrator.removeBookById(12), is(false));%0A    %7D%0A%7D

create BookAdministrator test