classdef testMethodAccess1
    

    methods (Access = ?testMethodAccess2)
       
        function test (self)
            
            disp ('Access granted');
        
        end
        
    end
    
end