public void testToFormattedStringLineWrap()
{
LdifDnLine dnLine = LdifDnLine
.create( "cn=abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxy,ou=department,o=org,dc=example,dc=com" ); //$NON-NLS-1$
LdifFormatParameters formatParameters = new LdifFormatParameters( true, 78, "\n" ); //$NON-NLS-1$
String formattedString = dnLine.toFormattedString( formatParameters );
assertEquals( formattedString, "dn: cn=abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxy,ou=department,o=org" //$NON-NLS-1$
+ "\n ,dc=example,dc=com\n" ); //$NON-NLS-1$
}