Emulate drag-and-drop using JavaScript
<p>I know that jQuery can programmatically trigger events on DOM elements that are listening to those events. For example <code>$el.click()</code> will trigger a click event on <code>$el</code> without having to physically click <code>$el</code> with the mouse.</p>

<p>Given two DOM elements <code>dom1</code> and <code>dom2</code>, is it possible to programmatically emulate a drag-and-drop from <code>dom1</code> to <code>dom2</code> using jQuery (or vanilla JavaScript), where <code>dom1</code> is draggable and <code>dom2</code> is droppable using jQuery UI.</p>

<p>Note: The reason I want to do this is to build automated UI tests.</p>
