public static void setUpOrder() throws Exception {
FailOnThreadViolationRepaintManager.install();
orderManager = (OrderManager) ModelUtil.getBean("orderManager");
CustomerManager customerManager = (CustomerManager) ModelUtil
.getBean("customerManager");
ConstructionTypeManager constructionTypeManager = (ConstructionTypeManager) ModelUtil
.getBean(ConstructionTypeManager.MANAGER_NAME);
final ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
.getBean(ProductAreaManager.MANAGER_NAME);
order = new Order();
Set<OrderLine> orderLines = new HashSet<OrderLine>();
OrderLine orderLine = new OrderLine();
orderLine.setOrder(order);
orderLine.setArticlePath("articlePath");
orderLines.add(orderLine);
order.setOrderLines(orderLines);
order.setOrderNr("123456789");
order.setDeliveryAddress("deliveryAddress");
order.setPostalCode("1234");
order.setPostOffice("postOffice");
order.setOrderDate(Calendar.getInstance().getTime());
Customer customer = customerManager.findByCustomerNr(1);
order.setCustomer(customer);
ConstructionType constructionType = constructionTypeManager
.findByName("A1");
order.setConstructionType(constructionType);
productArea = productAreaManager.findByName("Garasje villa");
order.setProductArea(productArea);
orderManager.saveOrder(order);