RepositoryFileDto file = mock( RepositoryFileDto.class );
doReturn( "file.txt" ).when( file ).getName();
when( fileService.defaultUnifiedRepositoryWebService.getFile( anyString() ) ).thenReturn( file );
String pathId = "/usr/folder/file.txt";
RepositoryFileAclDto acl = mock( RepositoryFileAclDto.class );
fileService.setFileAcls( pathId, acl );
verify( acl, times( 1 ) ).setId( anyString() );
verify( file, times( 1 ) ).getId();
verify( fileService.defaultUnifiedRepositoryWebService, times( 1 ) ).updateAcl( acl );