@Override
  public List<VFSFile> getFiles( VFSFile file, String filters, VariableSpace space ) throws FileException {

    ConnectionFileName fileName = getConnectionFileName( file );

    if ( fileName.isConnectionRoot() ) {
      VFSConnectionDetails details = getExistingDetails( fileName );
      if ( usesBuckets( details ) ) {
        return getBuckets( file, fileName, details );
      }
    }

    FileObject fileObject;
    try {
      fileObject = getFileObject( file, space );
    } catch ( FileException e ) {
      throw new FileNotFoundException( file.getPath(), TYPE );
    }

    return populateChildren( file, fileObject, filters );
  }
@Test
  public void testGetFilesOfSubFolder() throws Exception {
    GetFilesOfSubFolderScenario scenario = new GetFilesOfSubFolderScenario();

    List<VFSFile> files = vfsFileProvider.getFiles( scenario.baseFile, null, mock( VariableSpace.class ) );

    assertNotNull( files );
    assertEquals( 2, files.size() );
    assertFile( files.get( 0 ), scenario.child1FileObject );
    assertFolder( files.get( 1 ), scenario.child2FolderObject );
  }