Convert the testConstructorWithSocketParameter test to spock.