# File test/test_wpm_xml_with_xmlparser.rb, line 57
    def test_attr
      @attr_map.add_attr('', '', 'id', '001')
      @attr_map.add_attr('test://foo', 'foo', 'name', 'foo')
      @attr_map.add_attr('test://bar', 'bar', 'name', 'bar')

      assert_equal('001', @attr_map['id'])
      assert_equal('001', @attr_map['', 'id'])
      assert_equal('foo', @attr_map['test://foo', 'name'])
      assert_equal('bar', @attr_map['test://bar', 'name'])
      assert_nil(@attr_map['nothing'])
      assert_nil(@attr_map['', 'nothing'])
      assert_nil(@attr_map['test://foo', 'nothing'])
      assert_nil(@attr_map['test://bar', 'nothing'])
      assert_nil(@attr_map['test://detarame', 'nothing'])

      attr_list = [
        # ns            prefix name    value
        [ '',           '',    'id',   '001' ],
        [ 'test://foo', 'foo', 'name', 'foo' ],
        [ 'test://bar', 'bar', 'name', 'bar' ]
      ]
      assert_equal(attr_list.sort, @attr_map.to_a.sort)
    end