rename to even better name of ConstPolicy
unit tests for type immutification
fill in javadoc for classes in 'generate' package