Implement optional configuration rules
ABort install MOJO execution if there are any unmatched rules
Use configuration clone() in tests

In tests don't modify configuration directly.  Clone it and customize
the clone.