public String getNewLine( String fformat ) {
    String nl = System.getProperty( "line.separator" );

    if ( fformat != null ) {
      if ( fformat.equalsIgnoreCase( "DOS" ) ) {
        nl = "\r\n";
      } else if ( fformat.equalsIgnoreCase( "UNIX" ) ) {
        nl = "\n";
      }
    }

    return nl;
  }
@Test
  public void testGetNewline() throws Exception {
    XMLOutputMeta xmlOutputMeta = new XMLOutputMeta();
    assertEquals( "\r\n", xmlOutputMeta.getNewLine( "DOS" ) );
    assertEquals( "\n", xmlOutputMeta.getNewLine( "UNIX" ) );
    assertEquals( System.getProperty( "line.separator" ), xmlOutputMeta.getNewLine( null ) );
  }