@Test
public void setHeaderColumn() {

    String columnId = factMappingDescription.getExpressionIdentifier().getName();
    FactMappingType type = factMappingDescription.getExpressionIdentifier().getType();
    String columnGroup = type.name();
    scenarioGridSpy.setType(ScenarioSimulationModel.Type.RULE);
    scenarioGridSpy.setHeaderColumn(1, factMappingDescription, true);
    verify(scenarioGridSpy, times(1)).isPropertyAssigned(eq(true), eq(factMappingDescription));
    verify(scenarioGridSpy, times(1)).getPlaceHolder(eq(true), eq(true), isA(FactMappingValueType.class), anyString());
    verify(scenarioGridSpy, times(1)).getScenarioGridColumnLocal(eq(EXPRESSION_ALIAS_DESCRIPTION),
                                                              any(),
                                                              eq(columnId),
                                                              eq(columnGroup),
                                                              eq(type),
                                                              anyString());
    verify(scenarioGridColumnMock, times(1)).setColumnWidthMode(ColumnWidthMode.FIXED);
    verify(scenarioGridModelMock, times(1)).getDOMElementFactory(anyString(), eq(ScenarioSimulationModel.Type.RULE), eq(FactMappingValueType.NOT_EXPRESSION));
    reset(scenarioGridSpy);
    reset(scenarioGridColumnMock);
    reset(scenarioGridModelMock);
    columnId = factMappingGiven.getExpressionIdentifier().getName();
    type = factMappingGiven.getExpressionIdentifier().getType();
    columnGroup = type.name();
    scenarioGridSpy.setHeaderColumn(1, factMappingGiven, true);
    verify(scenarioGridSpy, times(1)).isPropertyAssigned(eq(true), eq(factMappingGiven));
    verify(scenarioGridSpy, times(1)).getPlaceHolder(eq(true), eq(false), eq(FactMappingValueType.NOT_EXPRESSION), anyString());
    verify(scenarioGridSpy, times(1)).getScenarioGridColumnLocal(eq(EXPRESSION_ALIAS_GIVEN),
                                                                 any(),
                                                                 eq(columnId),
                                                                 eq(columnGroup),
                                                                 eq(type),
                                                                 anyString());
    verify(scenarioGridColumnMock, never()).setColumnWidthMode(any());
    verify(scenarioGridModelMock, never()).getDOMElementFactory(any(), any(), any());
}