SetPropertyHeaderCommand extends AbstractSelectedColumnCommand { @Override protected void executeIfSelectedColumn(ScenarioSimulationContext context, ScenarioGridColumn selectedColumn) { setPropertyHeader(context, selectedColumn, context.getStatus().getPropertyNameElements(), context.getStatus().getValueClassName()); } SetPropertyHeaderCommand(GridWidget gridWidget, FactMappingValueType factMappingValueType); private  SetPropertyHeaderCommand();   }
@Test public void executeIfSelected() { ((SetPropertyHeaderCommand) commandSpy).executeIfSelectedColumn(scenarioSimulationContextLocal, gridColumnMock); verify((SetPropertyHeaderCommand) commandSpy, times(1)).setPropertyHeader(eq(scenarioSimulationContextLocal), eq(gridColumnMock), eq(MULTIPART_VALUE_ELEMENTS), eq(VALUE_CLASS_NAME)); }