### Question:
SelectList extends AbstractElement implements Selectable, Deselectable { public void deselectByIndex(int index) { getDispatcher().beforeDeselect(this, index); new Select(getElement()).deselectByIndex(index); if (Config.getBoolConfigProperty(ConfigProperty.ENABLE_GUI_LOGGING)) { logUIActions(UIActions.CLEARED, Integer.toString(index)); } getDispatcher().afterDeselect(this, index); } SelectList(String locator);  SelectList(String locator, String controlName);  SelectList(ParentTraits parent, String locator);  SelectList(String locator, String controlName, ParentTraits parent); void select(String optionLocator); void select(String[] optionLocators); void addSelection(String optionLocator); void selectByValue(String value); void selectByLabel(String label); void selectByIndex(int index); void selectByValue(String[] values); void selectByLabel(String[] labels); void selectByIndex(String[] indexes); void addSelectionByValue(String value); void addSelectionByLabel(String label); void addSelectionByIndex(String index); String[] getSelectOptions(); String getSelectedLabel(); String getSelectedValue(); String[] getSelectedLabels(); String[] getSelectedValues(); String[] getContentLabel(); String[] getContentValue(); void deselectAll(); void deselectByValue(String value); void deselectByIndex(int index); void deselectByLabel(String label);  }### Answer:
@Test(groups = {"browser-tests"}) @WebTest public void testDeselectByIndex() { Grid.driver().get(TestServerUtils.getTestEditableURL()); multiSelect.selectByIndex(new String[]{"0","3"}); assertTrue(multiSelect.getSelectedValues().length == 2, "Validate SelectByIndex method"); assertTrue(multiSelect.getSelectedValues()[0].matches("volvo"), "Validate SelectedValue method"); multiSelect.deselectByIndex(0); assertTrue(multiSelect.getSelectedValues().length == 1, "Validate DeselectByIndex method"); assertTrue(multiSelect.getSelectedValue().matches("audi"), "Validate DeselectByIndex method"); }