# File test/test_DocumentTable.rb, line 611
    def test_down
      @DocumentTable.entry = { :pos => -1 } # out of lower limit
      @DocumentTable.down
      assert_equal(0, @swap_call)
      assert_equal(0, @write_call)
      assert_equal([ { :params => @mount_params,
                       :show_args => false,
                       :edit_type_selected => 'Foo',
                       :filter_selected => 'Apple',
                       :pos => 0
                     },
                     { :params => @mount_params2,
                       :show_args => false,
                       :edit_type_selected => 'Bar',
                       :filter_selected => 'Apple',
                       :pos => 1
                     }
                   ], @DocumentTable.list)

      @DocumentTable.entry = { :pos => 1 } # out of upper limit
      @DocumentTable.down
      assert_equal(0, @swap_call)
      assert_equal(0, @write_call)
      assert_equal([ { :params => @mount_params,
                       :show_args => false,
                       :edit_type_selected => 'Foo',
                       :filter_selected => 'Apple',
                       :pos => 0
                     },
                     { :params => @mount_params2,
                       :show_args => false,
                       :edit_type_selected => 'Bar',
                       :filter_selected => 'Apple',
                       :pos => 1
                     }
                   ], @DocumentTable.list)

      @DocumentTable.entry = { :pos => 0 }
      @DocumentTable.down
      assert_equal(1, @swap_call)
      assert_equal(0, @swap_pos1)
      assert_equal(1, @swap_pos2)
      assert_equal(1, @write_call)
      assert_equal([ { :params => @mount_params2,
                       :show_args => false,
                       :edit_type_selected => 'Bar',
                       :filter_selected => 'Apple',
                       :pos => 0
                     },
                     { :params => @mount_params,
                       :show_args => false,
                       :edit_type_selected => 'Foo',
                       :filter_selected => 'Apple',
                       :pos => 1
                     }
                   ], @DocumentTable.list)
    end