Added test to show usage on protected constructors

Test documents how to set the attribute so that the arguments to a
protected constructor are checked for null.