Add a method to convert a Properties object to a Map<String, String>

Also add the unit tests for the method.