private static void createBooksAndLoans(Library library)
			throws IllegalLoanOperationException {
		for(int i = 0; i < library.getBooks().size(); i++) {
			switch(i%4) {
			case 0:
				Copy c1 = library.createAndAddCopy(library.getBooks().get(i));
				c1.setCondition(Copy.Condition.GOOD);
				createLoansForCopy(library,c1,i,5);
				Copy c2 = library.createAndAddCopy(library.getBooks().get(i));
				c2.setCondition(Copy.Condition.DAMAGED);
				createLoansForCopy(library,c2,i,2);
				Copy c3 = library.createAndAddCopy(library.getBooks().get(i));
				c3.setCondition(Copy.Condition.WASTE);
				break;
			case 1:
				Copy c4 = library.createAndAddCopy(library.getBooks().get(i));
				createLoansForCopy(library,c4,i,4);
				library.createAndAddCopy(library.getBooks().get(i));
				break;
			case 2:
				Copy c5 = library.createAndAddCopy(library.getBooks().get(i));
				createLoansForCopy(library,c5,i,2);
				break;
			case 3:
				Copy c6 = library.createAndAddCopy(library.getBooks().get(i));
				createOverdueLoanForCopy(library,c6,i);
				break;
			}
		}
	}