s(data, {'numeric'}, {'nonempty', 'scalar'}, 'TestRequestAndResponseResponse', 'data');
            
            obj.JavaMessage.setData(data);
        end
    end
    
    methods (Access = protected)
        function cpObj = copyElement(obj)
            %copyElement Implements deep copy behavior for message
            
            % Call default copy method for shallow copy
            cpObj = copyElement@robotics.ros.Message(obj);
            
            % Create a new Java message object
            cpObj.JavaMessage = obj.createNewJavaMessage;
            
            % Iterate over all primitive properties
            cpObj.Data = obj.Data;
        end
        
        function reload(obj, strObj)
            %reload Called by loadobj to assign properties
            obj.Data = strObj.Data;
        end
    end
    
    methods (Access = ?robotics.ros.Message)
        function strObj = saveobj(obj)
            %saveobj Implements saving of message to MAT file
            
            % Return an empty 