DecisionTableColumnViewUtils { public static int getCurrentIndexFromList(final String currentValue, final ListBox list) { int currentIndexFromList = getCurrentIndexFromListWithoutDefaultSelect(currentValue, list); if (currentIndexFromList == -1) { return 0; } return currentIndexFromList; }  static int getCurrentIndexFromList(final String currentValue,
                                              final ListBox list); static int getCurrentIndexFromListWithoutDefaultSelect(final String currentValue,
                                                                  final ListBox list); static boolean nil(String s); static void addWidgetToContainer(final IsWidget widget,
                                            final Div container); static String getColumnManagementGroupTitle(final BaseColumn column);  }
@Test public void testGetIndexWithDefaultSelectNull() throws Exception { assertEquals(0, DecisionTableColumnViewUtils.getCurrentIndexFromList(null, listBox)); }
@Test public void testGetIndexWithDefaultSelectEmpty() throws Exception { assertEquals(0, DecisionTableColumnViewUtils.getCurrentIndexFromList("", listBox)); }
@Test public void testGetIndexWithDefaultSelectPlaceholder() throws Exception { assertEquals(0, DecisionTableColumnViewUtils.getCurrentIndexFromList(PLEASE_CHOOSE, listBox)); }
@Test public void testGetIndexWithDefaultSelectFirstOption() throws Exception { assertEquals(1, DecisionTableColumnViewUtils.getCurrentIndexFromList(FIRST_OPTION, listBox)); }
@Test public void testGetIndexWithDefaultSelectSecondOption() throws Exception { assertEquals(2, DecisionTableColumnViewUtils.getCurrentIndexFromList(SECOND_OPTION, listBox)); }