ISPN-3165 Add a programmatic configuration test

https://issues.jboss.org/browse/ISPN-3165