paths.add( "path1" );
paths.add( "path2" );
paths.add( "path3" );
doReturn( true ).when( fileService.repository ).hasAccess( anyString(), any( EnumSet.class ) );
List<Setting> settings = fileService.doGetPathsAccessList( new StringListWrapper( paths ) );
assertTrue( settings.size() > 0 );
doReturn( false ).when( fileService.repository ).hasAccess( anyString(), any( EnumSet.class ) );
settings = fileService.doGetPathsAccessList( new StringListWrapper( paths ) );
assertEquals( 0, settings.size() );
}