new - add factory method for builder
new - unit test for nio builder