ConstructionTypeAttributesConverter garasjeConverter = new GarasjeConverter(ordlnManager);
ProductAreaGroup productAreaGroup=new ProductAreaGroup();
productAreaGroup.setProductAreaGroupName("Garasje");
ProductArea productArea = new ProductArea();
productArea.setProductAreaGroup(productAreaGroup);
Order order = new Order();
order.setProductArea(productArea);
Ord ord = new Ord();
ord.setOrdno(111);
ord.setInf("A3");
ord.setFree1("150");
ord.setFree2("20");
OrderLine orderLine = new OrderLine();
orderLine.setArticlePath("Garasjetype");
ConstructionTypeArticleAttribute constructionTypeArticleAttribute=new ConstructionTypeArticleAttribute();
ArticleTypeAttribute articleTypeAttribute=new ArticleTypeAttribute();
Attribute attribute=new Attribute();
attribute.setName("Veggh�yde");
articleTypeAttribute.setAttribute(attribute);
constructionTypeArticleAttribute.setArticleTypeAttribute(articleTypeAttribute);
OrderLineAttribute orderLineAttribute = new OrderLineAttribute();
orderLineAttribute.setConstructionTypeArticleAttribute(constructionTypeArticleAttribute);
orderLine.addAttribute(orderLineAttribute);
constructionTypeArticleAttribute=new ConstructionTypeArticleAttribute();
articleTypeAttribute=new ArticleTypeAttribute();
attribute=new Attribute();
attribute.setName("Murh�yde");
articleTypeAttribute.setAttribute(attribute);
orderLineAttribute = new OrderLineAttribute();
orderLineAttribute.setConstructionTypeArticleAttribute(constructionTypeArticleAttribute);
orderLine.addAttribute(orderLineAttribute);
constructionTypeArticleAttribute.setArticleTypeAttribute(articleTypeAttribute);
constructionTypeArticleAttribute=new ConstructionTypeArticleAttribute();
articleTypeAttribute=new ArticleTypeAttribute();
attribute=new Attribute();
attribute.setName("Bredde");
articleTypeAttribute.setAttribute(attribute);
orderLineAttribute = new OrderLineAttribute();
orderLineAttribute.setConstructionTypeArticleAttribute(constructionTypeArticleAttribute);
orderLine.addAttribute(orderLineAttribute);
constructionTypeArticleAttribute.setArticleTypeAttribute(articleTypeAttribute);
constructionTypeArticleAttribute=new ConstructionTypeArticleAttribute();
articleTypeAttribute=new ArticleTypeAttribute();
attribute=new Attribute();
attribute.setName("Lengde");
articleTypeAttribute.setAttribute(attribute);
orderLineAttribute = new OrderLineAttribute();
orderLineAttribute.setConstructionTypeArticleAttribute(constructionTypeArticleAttribute);
orderLine.addAttribute(orderLineAttribute);
constructionTypeArticleAttribute.setArticleTypeAttribute(articleTypeAttribute);
order.addOrderLine(orderLine);
final Ordln ordln=new Ordln();
ordln.setWdtu(BigDecimal.valueOf(400));
ordln.setLgtU(BigDecimal.valueOf(800));
when(ordlnManager.findByOrdnoAndPrCatNo2(111, 1)).thenReturn(ordln);
garasjeConverter.setConstructionTypeAttributes(ord, order);
assertNotNull(order);
OrderLine garageOrderLine = order.getOrderLine("Garasjetype");
assertNotNull(garageOrderLine);
assertEquals(true, garageOrderLine!=OrderLine.UNKNOWN);
OrderLineAttribute testOrderLineAttribute=garageOrderLine.getAttributeByName("Veggh�yde");
assertNotNull(testOrderLineAttribute);
assertEquals(true, testOrderLineAttribute!=OrderLineAttribute.UNKNOWN);