NetworkInterfaces knows how to write out config file.

Add unit tests for this functionality.