@Test
	public void savenowtest() throws ClassNotFoundException, IOException{

		try{
			@SuppressWarnings("resource")
			ObjectInputStream osb = new ObjectInputStream(new FileInputStream("bookcollection.txt"));///óϾ , Ͼ׳ϴ° ҽ߰
			bookcollectb.setBookCount(osb.readInt());
			bookcollectb.collectionb.clear();
			for( int i= 0; i< bookcollectb.getBookCount();i++){
				Book ms = (Book)osb.readObject();
				bookcollectb.collectionb.add(i,ms);
			}
		}catch(IOException e){
		}

		bookcollectb.savenow();

		int count=0;
		ObjectInputStream osb = new ObjectInputStream(new FileInputStream("bookcollection.txt"));///óϾ , Ͼ׳ϴ° ҽ߰
		int endnnum = osb.readInt();

		for( int i= 0; i< endnnum;i++){
			Book ms = (Book)osb.readObject();
			if(bookcollectb.collectionb.elementAt(i).equals(ms) != true)
				count++;
		}
		assertTrue(endnnum == count);
	}