### Question:
MultiSelectListInputControlHandler extends SingleSelectListInputControlHandler { protected Object preprocessValue(Object value) { if(value instanceof String) { if(value.equals("null")) { value = null; } else { value = ((String) value).replace("\\,",","); } } return value; }  @Override String[] formatValue(Object typedValue, InputControl control, ReportInputControlInformation info); @Override boolean isNothingSelected(String[] rawData); @Override void applyNothingSelected(String controlName, Map<String, Object> parameters);  }### Answer:
@Test public void preprocessValue_withDifferentValues() { assertNull(handler.preprocessValue("null")); assertEquals("something,s",handler.preprocessValue("something\\,s")); assertEquals("",handler.preprocessValue("")); assertEquals("test\\,s",handler.preprocessValue("test\\\\,s")); assertEquals(0,handler.preprocessValue(0)); }