AbstractSelectedColumnCommand extends AbstractScenarioGridCommand { protected void setInstanceHeaderMetaData(ScenarioGridColumn selectedColumn, String aliasName, FactIdentifier factIdentifier) { selectedColumn.getInformationHeaderMetaData().setTitle(aliasName); selectedColumn.setInstanceAssigned(true); selectedColumn.setFactIdentifier(factIdentifier); } protected  AbstractSelectedColumnCommand(GridWidget gridWidget, FactMappingValueType factMappingValueType); protected  AbstractSelectedColumnCommand();   }
@Test public void setInstanceHeaderMetaData() { ((AbstractSelectedColumnCommand) commandSpy).setInstanceHeaderMetaData(gridColumnMock, FACT_NAME, factIdentifierMock); verify(((AbstractSelectedColumnCommand) commandSpy)).setInstanceHeaderMetaData(eq(gridColumnMock), eq(FACT_NAME), eq(factIdentifierMock)); verify(gridColumnMock, times(1)).setInstanceAssigned(true); verify(gridColumnMock, times(1)).setFactIdentifier(eq(factIdentifierMock)); verify(informationHeaderMetaDataMock, times(1)).setTitle(eq(FACT_NAME)); }