HV-373 XML configuration of constructor and method constraints including tests.

Also formatting existing code.