classdef testMethodAccess2
    
    properties
        t1;
    end
    
    methods
        
        function self = testMethodAccess2 (t1)
            
            assert (isa (t1, 'testMethodAccess1'), 't1 must be a testMethodAccess1 object');
            
            self.t1 = t1;
            
        end
        
    end
    
    methods
       
        function test (self)
            
            self.t1.test ();
        
        end
        
    end
    
end