Refactored all unit tests to use new typed API with builders for configuration (#1320)

* Refactored all unit tests to use new typed API with builders for configuration

* Did conversion in pulsar-client tool

* Refactoring typo fixes
3 files changed