@Test
	public void addbooktest() throws Exception{
		Book newbook2;
		newbook2=new Book ("","سʹ轺","ۺ۴",6656,"X","");
		int count=bookcollectb.getBookCount();
		bookcollectb.addbook(newbook2);
		count++;
		int endnum=0;

		try{
			//׽Ʈ   
			ObjectInputStream osb = new ObjectInputStream(new FileInputStream("bookcollection.txt"));
			endnum=osb.readInt();
			//߰ å ִ Ȯ
			bookcollectb.setBookCount(osb.readInt());
			for( int i= 0; i< osb.readInt();i++){
				Book bs = (Book)osb.readObject();
				if((endnum-1) == i){
					if(bs.title.equals("") && bs.author.equals("سʹ轺") && bs.publish.equals("ۺ۴") && (bs.ISBN==6656) && bs.avail.equals("X") && bs.borrower.equals(""))
						assertTrue(true);
				}
			}
			assertTrue(false);
		}catch(Exception e){
		}
		assertEquals(endnum, bookcollectb.bookCount);
		assertEquals("", bookcollectb.collectionb.elementAt(endnum-1).title);
	}