@Test
public void testMultiplePorts() throws IOException, ParseException {

  MultiportSyslogTCPSource source = new MultiportSyslogTCPSource();
  Channel channel = new MemoryChannel();
  List<Event> channelEvents = new ArrayList<>();
  int numPorts = 1000;
  List<Integer> portList = testNPorts(source, channel, channelEvents,
      numPorts, null, getSimpleEventSender(), new Context());
  //Since events can arrive out of order, search for each event in the array
  processEvents(channelEvents, numPorts, portList);
  source.stop();
}