@@ -0,0 +1,1106 @@
+package com.quicktravel.ticket_printer.ticketfactory;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport com.quicktravel.ticket_printer.TicketElement;%0A%0Apublic class TicketElementFactoryTest %7B%0A%0A  @Test%0A  public void testMakeTicketElement() %7B%0A    Map%3CString, Object%3E ticketData = new HashMap%3CString, Object%3E();%0A    ticketData.put(%22x%22, 1);%0A    ticketData.put(%22y%22,  2);%0A    ticketData.put(%22font_size%22,  3);%0A    ticketData.put(%22bold%22,  false);%0A    ticketData.put(%22italic%22,  true);%0A    ticketData.put(%22value%22, %22the value will have &nbsp; removed%22);%0A    %0A    TicketElement ticketElement = (new TicketElementFactory(ticketData)).makeTicketElement();%0A    %0A    assertEquals(ticketElement.getX(), 1);%0A    assertEquals(ticketElement.getY(), 2);%0A    assertEquals(ticketElement.getFontSize(), 3);%0A    assertEquals(ticketElement.isBold(), false);%0A    assertEquals(ticketElement.isItalic(), true);%0A    assertEquals(ticketElement.isImage(), false); // Interpreted from value%0A    assertEquals(ticketElement.getValue(), %22the value will have  removed%22);%0A  %7D%0A%0A%7D%0A

Add Test for TicketElementFactory