	@Test
	public void testCreatedMessageLineMaxLimit(){

        SOAPMessage soapMessage = null;
        MimeMessage mimeMsg = null;
        MimeHeaders mimeHeaders = new MimeHeaders();
        
        InputStream contentStream = FIXTURE_LOADER.getResourceAsStream("mime_message_content.dat");		
        mimeHeaders.setHeader("Content-Type", "text/xml; charset=utf-8");
        
        /* 
         * Create an SOAP Message by using the resource loaded by FixtureLoader 
         * And check the soapMessage are successfully created. 
         */ 
        try {
			soapMessage = 
				MessageFactory.newInstance().createMessage(mimeHeaders,contentStream);
		} catch (IOException e) {
			e.printStackTrace();
			Assert.fail("Failed on loading the content inputstream\n"+e.getMessage());
		} catch (SOAPException e) {
			e.printStackTrace();
			Assert.fail("Create SOAP Message Failed\n"+e.getMessage());			
		}
		if(soapMessage == null)
			Assert.fail("Create SOAP Message Failed\n Message Should not be Null.");
		System.out.println("SoapMessage Created.");
		

        /* 
         * Create an Mime Message by using SOAP message created above.
         * And check the soapMessage are successfully created. 
         */ 
		try {
			mimeMsg = 
					mailSender.createMessage(MAIL_FROM, MAIL_TO, "",
									"SOAPMailSenderTest.testCreatedMessageLineMaxLimit", 
									soapMessage);
		} catch (ConnectionException e) {
			e.printStackTrace();
			Assert.fail("Create MimeMessage Failed\n"+e.getMessage());
		}
		if(mimeMsg == null)
			Assert.fail("Create MimeMessage Failed\n Message Should not be Null.");		
		System.out.println("MimeMessage Created.");
		
		
		
		 /* 
         * Get the content of the MimeMessage as output stream, 
         *  which made sure that there is no converstion has been done 
         */			
		ByteArrayOutputStream bbOutputStream = new ByteArrayOutputStream();
		 try {
			mimeMsg.writeTo(bbOutputStream);
		} catch (Exception e) {
			e.printStackTrace();
			Assert.fail(e.getMessage());
		}
		
		/**
		 * Assert the stream content 
		 */
		System.out.println("Begin assertion on message content.");
		byte[] msgContent = bbOutputStream.toByteArray();
		System.out.println("Mime Message Size: " + msgContent.length);
		int contentCount = 0;
		for(int index =0; index < msgContent.length; index++){
			boolean startofLine = false;
			// End of line
			if(msgContent[index] == 0x0D &&
							msgContent[index+1] == 0x0A){
				++index;				
				contentCount = 0;
				Assert.assertTrue(contentCount<=990);							
			}// Line content 
			else{				
				contentCount++;
			}
		}
	}