void () { setGridSize(2, 2); insertComponent(0, 0, 1, 1); insertComponent(1, 0, 1, 2); setComponentDimensions(myDropComponent, 0, 0, 2, 1); GridInsertLocation location = new GridInsertLocation(myContainer, 0, 0, GridInsertMode.ColumnAfter); assertFalse(location.canDrop(DraggedComponentList.withComponents(myDropComponent))); }