WFLY-1611 Protected constructor for unit testing