// Index in group: 5, 6, 7
model.addColumnsIndexesToGroup(TEST_GROUP_NAME_2, 7);
assertEquals(3, columnGroupLayer.getColumnSpan(5));
// Hide position 6
ColumnHideCommand hideColumnCommand = new ColumnHideCommand(
gridLayer.getBodyLayer(), 6);
gridLayer.getBodyLayer().getColumnHideShowLayer()
.doCommand(hideColumnCommand);
assertEquals(2, columnGroupLayer.getColumnSpan(5));
// Hide position 5
hideColumnCommand = new ColumnHideCommand(gridLayer.getBodyLayer(), 6);
gridLayer.getBodyLayer().getColumnHideShowLayer()
.doCommand(hideColumnCommand);
assertEquals(1, columnGroupLayer.getColumnSpan(5));
}