### Question:
StringToListOfActiveMQDestinationConverter { public static List<ActiveMQDestination> convertToActiveMQDestination(Object value) { if (value == null) { return null; } String text = value.toString(); if (text.startsWith("[") && text.endsWith("]")) { text = text.substring(1, text.length() - 1).trim(); if (text.isEmpty()) { return null; } String[] array = text.split(","); List<ActiveMQDestination> list = new ArrayList<ActiveMQDestination>(); for (String item : array) { list.add(ActiveMQDestination.createDestination(item.trim(), ActiveMQDestination.QUEUE_TYPE)); } return list; } else { return null; } }  static List<ActiveMQDestination> convertToActiveMQDestination(Object value); static String convertFromActiveMQDestination(Object value); static String convertFromActiveMQDestination(Object value, boolean includeOptions);  }### Answer:
@Test public void testConvertToActiveMQDestination() { List<ActiveMQDestination> result = StringToListOfActiveMQDestinationConverter.convertToActiveMQDestination(""); assertNull(result); result = StringToListOfActiveMQDestinationConverter.convertToActiveMQDestination("[]"); assertNull(result); result = StringToListOfActiveMQDestinationConverter.convertToActiveMQDestination("[ ]"); assertNull(result); result = StringToListOfActiveMQDestinationConverter.convertToActiveMQDestination("[one,two,three]"); assertNotNull(result); assertEquals(3, result.size()); result = StringToListOfActiveMQDestinationConverter.convertToActiveMQDestination("[one, two, three ]"); assertNotNull(result); assertEquals(3, result.size()); }