ScenarioSimulationUtils { public static ScenarioSimulationBuilders.HeaderBuilder getHeaderBuilder(String instanceTitle, String propertyTitle, String columnId, String columnGroup, FactMappingType factMappingType, ScenarioHeaderTextBoxSingletonDOMElementFactory factoryHeader) { ScenarioSimulationBuilders.HeaderBuilder headerBuilder = ScenarioSimulationBuilders.HeaderBuilder.get(factoryHeader); headerBuilder.setColumnId(columnId); headerBuilder.setColumnTitle(columnGroup); headerBuilder.setReadOnly(true); if (isOther(factMappingType)) { headerBuilder.setColumnTitle(instanceTitle); headerBuilder.setColumnGroup(columnGroup); headerBuilder.setInstanceHeader(true); return headerBuilder; } final ScenarioSimulationBuilders.HeaderBuilder instanceHeader = headerBuilder.newLevel() .setColumnTitle(instanceTitle) .setColumnGroup(columnGroup) .setReadOnly(false) .setInstanceHeader(true) .setPropertyHeader(false); instanceHeader.newLevel() .setColumnTitle(propertyTitle) .setColumnGroup(getColumnSubGroup(columnGroup)) .setReadOnly(false) .setInstanceHeader(false) .setPropertyHeader(true); return headerBuilder; } private  ScenarioSimulationUtils(); static String getColumnSubGroup(String columnGroup); static String getOriginalColumnGroup(String columnGroup); static boolean isSimpleJavaType(String className); static String getPlaceHolder(final boolean isInstanceAssigned,
                                        final boolean isPropertyAssigned,
                                        final FactMappingValueType valueType,
                                        final String className); static List<String> getPropertyNameElementsWithoutAlias(List<String> propertyNameElements, FactIdentifier factIdentifier); static ScenarioGridColumn getScenarioGridColumn(String instanceTitle,
                                                           String propertyTitle,
                                                           String columnId,
                                                           String columnGroup,
                                                           FactMappingType factMappingType,
                                                           ScenarioHeaderTextBoxSingletonDOMElementFactory factoryHeader,
                                                           ScenarioCellTextAreaSingletonDOMElementFactory factoryCell,
                                                           String placeHolder); static ScenarioGridColumn getScenarioGridColumn(ScenarioSimulationBuilders.HeaderBuilder headerBuilder,
                                                           ScenarioCellTextAreaSingletonDOMElementFactory factoryCell,
                                                           String placeHolder); static ScenarioSimulationBuilders.ScenarioGridColumnBuilder getScenarioGridColumnBuilder(ScenarioCellTextAreaSingletonDOMElementFactory factoryCell,
                                                                                                    ScenarioSimulationBuilders.HeaderBuilder headerBuilder,
                                                                                                    String placeHolder); static ScenarioSimulationBuilders.HeaderBuilder getHeaderBuilder(String instanceTitle,
                                                                            String propertyTitle,
                                                                            String columnId,
                                                                            String columnGroup,
                                                                            FactMappingType factMappingType,
                                                                            ScenarioHeaderTextBoxSingletonDOMElementFactory factoryHeader); static Point2D getMiddleXYCell(final GridWidget gridWidget, final GridColumn<?> column, boolean isHeader, final int uiRowIndex, final GridLayer gridLayer); static int getCellHeight(final GridWidget gridWidget, final GridColumn<?> column, boolean isHeader, final int uiRowIndex);  }
@Test public void getHeaderBuilder() { final ScenarioSimulationBuilders.HeaderBuilder retrieved = ScenarioSimulationUtils.getHeaderBuilder(COLUMN_INSTANCE_TITLE_FIRST, COLUMN_PROPERTY_TITLE_FIRST, COLUMN_ID, COLUMN_GROUP_FIRST, factMappingType, scenarioHeaderTextBoxSingletonDOMElementFactoryMock); assertNotNull(retrieved); }