FileAccessService { public boolean isUserHasAccess(String userId, File file) { if (isOwner(userId, file)) return true; if (isUserHasAtLeastGivenPermission(userId, file, Permission.GET_AND_DELETE, Permission.GET)) return true; return false; }  boolean isUserHasNotAccess(String userId, File file); boolean isUserCanNotDelete(String userId, File file); boolean isUserCanNotShare(String userId, File file); boolean isUserHasAccess(String userId, File file); boolean isUserCanDelete(String userId, File file); boolean isUserCanShare(String userId, File file); boolean isOwner(String userId, File file); boolean isUserHasAtLeastGivenPermission(String userId, File file, Permission... permissions);  }
@Test public void testIsUserHasAccess() throws Exception { }