@Test
  public void test() throws Exception {
	  
		String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(Calendar.getInstance().getTime());
		BufferedWriter log = new BufferedWriter(new FileWriter("C:/Dowic/log.txt", true));
		Creditcard myCreditcard = getCreditCard();
		User[] myUsers = getUser();
		Product[] myProducts = getProduct();
		
		if (myUsers.length > myProducts.length)
		{
			System.out.println("Error: Users and Products list not equal size");
			return;
		}
		log.write(" ");
		log.newLine();
		log.write("Date: " + timeStamp);
		log.newLine();
		for (int i = 0; i < myUsers.length; i++)
		{
			for (int j = 0; j < myProducts.length; j++ )
			{
				if (myUsers[i] != null && myUsers[i].getUserName().equals(myProducts[j].getUserMarket()))
				{
					log.write(CreateOrder(myCreditcard, myUsers[i], myProducts[j]));
					log.newLine();
					j = 0;
					break;
				}
			}
		}
		log.close();
  }