public String[] getUrlStrings() {
    String[] fileStrings = new String[ files.size() ];
    for ( int i = 0; i < fileStrings.length; i++ ) {
      fileStrings[ i ] = Const.optionallyDecodeUriString( files.get( i ).getPublicURIString() );
    }
    return fileStrings;
  }
@Test
  public void testGetUrlStrings() throws Exception {
    String sFileA = "hdfs://myfolderA/myfileA.txt";
    String sFileB = "file:///myfolderB/myfileB.txt";

    FileObject fileA = mock( FileObject.class );
    FileObject fileB = mock( FileObject.class );

    when( fileA.getPublicURIString() ).thenReturn( sFileA );
    when( fileB.getPublicURIString() ).thenReturn( sFileB );

    FileInputList fileInputList = new FileInputList();
    fileInputList.addFile( fileA );
    fileInputList.addFile( fileB );

    String[] result = fileInputList.getUrlStrings();

    assertNotNull( result );
    assertEquals( 2, result.length );
    assertEquals( sFileA, result[ 0 ] );
    assertEquals( sFileB, result[ 1 ] );
  }