### Question:
SplitSelectorExtractor implements SelectorExtractor { @Override public List<String> extractSelectors(Query query) throws IllegalArgumentException { List<String> selectorList = new ArrayList<>(); String selectorSeparator = this.separatorCharacter; if (this.separatorParameter != null) { QueryImpl.Parameter parameter = query.findParameter(separatorParameter); if (parameter != null && parameter.getParameterValue() != null) { String value = parameter.getParameterValue(); if (StringUtils.isNotBlank(value) && value.length() == 1) { selectorSeparator = value; } } } String queryStr = query.getQuery(); if (selectorSeparator == null) { selectorList.add(query.getQuery()); } else { String[] querySplit = queryStr.split(selectorSeparator); for (int splitNumber = 0; splitNumber < querySplit.length; splitNumber++) { if (useSplitsList == null || useSplit(useSplitsList, splitNumber)) { String s = querySplit[splitNumber]; selectorList.add(s.trim()); } } } return selectorList; }  @Override List<String> extractSelectors(Query query); void setSeparatorCharacter(String separatorCharacter); void setSeparatorParameter(String separatorParameter); void setUseSplits(String useSplits); List<IntRange> parseUseSplitsRanges(String useSplits); boolean useSplit(List<IntRange> useSplitList, int splitNumber);  }### Answer:
@Test public void extractSelectorsLuceneQuery1() { SplitSelectorExtractor extractor = new SplitSelectorExtractor(); QueryImpl q = new QueryImpl(); q.setQuery("selector1"); List<String> selectorList = extractor.extractSelectors(q); List<String> expected = Lists.newArrayList("selector1"); Assert.assertEquals(expected, selectorList); }