### Question:
FileInputList { public String[] getUrlStrings() { String[] fileStrings = new String[ files.size() ]; for ( int i = 0; i < fileStrings.length; i++ ) { fileStrings[ i ] = files.get( i ).getPublicURIString(); } return fileStrings; }  static String getRequiredFilesDescription( List<FileObject> nonExistantFiles ); static String[] createFilePathList( VariableSpace space, String[] fileName, String[] fileMask,
                                             String[] excludeFileMask, String[] fileRequired ); static String[] createFilePathList( VariableSpace space, String[] fileName, String[] fileMask,
                                             String[] excludeFileMask, String[] fileRequired,
                                             boolean[] includeSubdirs ); static String[] createFilePathList( VariableSpace space, String[] fileName, String[] fileMask,
                                             String[] excludeFileMask, String[] fileRequired, boolean[] includeSubdirs,
                                             FileTypeFilter[] filters ); static FileInputList createFileList( VariableSpace space, String[] fileName, String[] fileMask,
                                              String[] excludeFileMask, String[] fileRequired ); static FileInputList createFileList( VariableSpace space, String[] fileName, String[] fileMask,
                                              String[] excludeFileMask, String[] fileRequired,
                                              boolean[] includeSubdirs ); static FileInputList createFileList( VariableSpace space, String[] fileName, String[] fileMask,
                                              String[] excludeFileMask, String[] fileRequired, boolean[] includeSubdirs,
                                              FileTypeFilter[] fileTypeFilters ); static FileInputList createFolderList( VariableSpace space, String[] folderName, String[] folderRequired ); List<FileObject> getFiles(); String[] getFileStrings(); String[] getUrlStrings(); List<FileObject> getNonAccessibleFiles(); List<FileObject> getNonExistantFiles(); void addFile( FileObject file ); void addNonAccessibleFile( FileObject file ); void addNonExistantFile( FileObject file ); void sortFiles(); FileObject getFile( int i ); int nrOfFiles(); int nrOfMissingFiles(); static FileInputList createFileList( VariableSpace space, String[] fileName, String[] fileMask,
                                              String[] fileRequired, boolean[] includeSubdirs ); static String[] createFilePathList( VariableSpace space, String[] fileName, String[] fileMask,
                                             String[] fileRequired );  }### Answer:
@Test public void testGetUrlStrings() throws Exception { String sFileA = "hdfs: String sFileB = "file: 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(); assertEquals( 2, result.length ); assertEquals( sFileA, result[ 0 ] ); assertEquals( sFileB, result[ 1 ] ); }