final Layer data = map.getLayersInternal().get(0);
Object destination = map.getLayersInternal().get(2);
handler.setTarget(destination);
handler.setViewerLocation(ViewerDropLocation.BEFORE);
handler.performDrop(data, null);
final Object finalDest=destination;
UDIGTestUtil.inDisplayThreadWait(4000, new WaitCondition(){
public boolean isTrue() {
return data.getZorder()==2 && ((Layer) finalDest).getZorder()==1;