@Test
public void testCreateSocket() throws UnknownHostException {

    InetAddress address = InetAddress.getByName("localhost");
    int port = 10213;
    assumeTrue("Cannot perform test. Address at port:" + port + " and IP:" + address + "already bound"
            , socketCanBind(port, address));
    // should only be created once per port/address pair
    DatagramSocket socket = ConfigurableUDPSource.createUDPSocket(port, address, sourceName);
    assert socket != null;
    socket = ConfigurableUDPSource.createUDPSocket(port, address, sourceName);
    assert socket == null;
    socket = ConfigurableUDPSource.createUDPSocket(port, address, "other source");
    assert socket == null;
    
    port = 2005;
    assumeTrue("Cannot perform test. Address at port:" + port + " and IP:" + address + "already bound"
            , socketCanBind(port, address));     
    socket = ConfigurableUDPSource.createUDPSocket(port, address, sourceName);
    assert socket != null;
}