Add a constrcutor to create a DataSourceConfiguration from a Configuration object

Add test for this constructor also.