var select = new Select(driver.findElement(const By.id('fruits'));
if (select.text != 'apple') {
  select.selectByVisibleText('apple');
}

would be an example