@Test
public void testHeaderMetadataInstanceOf() {

    final ScenarioGridColumn invalidColumn = mockGridColumn(100,
                                                            Collections.singletonList(mock(GridColumn.HeaderMetaData.class)));
    assertThatThrownBy(() -> ScenarioSimulationGridHeaderUtilities.isEditableHeader(invalidColumn,
                                                                                    0))
            .isInstanceOf(IllegalStateException.class)
            .hasMessage("Header metadata has to be an instance of ScenarioHeaderMetaData");
}