### Question:
CsvInspector { public int determineFileFormat( String line ) { int type = -1; int n = line.length(); char c1 = 0; char c2 = 0; if ( n > 0 ) { c1 = line.charAt( n - 1 ); if ( n > 1 ) { c2 = line.charAt( n - 2 ); } if ( c1 == '\n' || c1 == '\r' ) { if ( c2 == '\n' || c2 == '\r' ) { type = TextFileInputMeta.FILE_FORMAT_DOS; } else { type = TextFileInputMeta.FILE_FORMAT_UNIX; } } } return type; }  int determineFileFormat( String line ); List<String> getColumnData( int columnNumber, String[][] data ); String guessDelimiter( String line );  }### Answer:
@Test public void testDetermineFileFormat() { CsvInspector inspector = new CsvInspector(); String line = "12;24;45\r\n59;99;100\r\n"; assertEquals( TextFileInputMeta.FILE_FORMAT_DOS, inspector.determineFileFormat( line ) ); }