@Test
public void testRegexSplit() throws Exception {

    List<String> a;
    a=DomainParticipantFactory.parse("127.10.0.1 127.10.0.2");
    Assert.assertEquals(a.size(), 2);
    a=DomainParticipantFactory.parse("127.10.0.1;127.10.0.2");
    Assert.assertEquals(a.size(), 2);
    a=DomainParticipantFactory.parse("127.10.0.1     127.10.0.2");
    Assert.assertEquals(a.size(), 2);
    a=DomainParticipantFactory.parse("127.10.0.1;127.10.0.2 127.10.0.3");
    Assert.assertEquals(a.size(), 3);
    // empty string should resolve to empty lists
    a=DomainParticipantFactory.parse("");
    Assert.assertEquals(a.size(), 0);
    a=DomainParticipantFactory.parse("   ");
    Assert.assertEquals(a.size(), 0);
    // make sure that spaces are trimmed appropriately
    a=DomainParticipantFactory.parse("  127.10.0.1  127.10.0.2  ");
    Assert.assertEquals(a.size(), 2);
    Assert.assertEquals(a.get(0), "127.10.0.1");
    Assert.assertEquals(a.get(1), "127.10.0.2");
}