AbstractComponent mockCanvasComponent = new TestComponent();
AbstractComponent mockDropComponent = new TestComponent();
CanvasManifestation canvas = new CanvasManifestation(mockCanvasComponent, mockCanvasViewInfo);
DropTarget dt = canvas.getDropTarget();
DropTargetDropEvent mockDTDE = Mockito.mock(DropTargetDropEvent.class);
Transferable mockTransferable = Mockito.mock(Transferable.class);
View[] mockViews = { Mockito.mock(View.class) };
Mockito.when(mockViews[0].getManifestedComponent()).thenReturn(mockDropComponent);
Mockito.when(mockViews[0].getInfo()).thenReturn(mockCanvasViewInfo);
Mockito.when(mockPersistence.getComponent(Mockito.anyString())).thenReturn(mockDropComponent);
Mockito.when(mockDTDE.getTransferable()).thenReturn(mockTransferable);
Mockito.when(mockTransferable.isDataFlavorSupported(View.DATA_FLAVOR)).thenReturn(true);
Mockito.when(mockDTDE.getLocation()).thenReturn(new Point(0,0));
Mockito.when(mockTransferable.getTransferData(View.DATA_FLAVOR)).thenReturn(mockViews);
dt.drop(mockDTDE);
}