OPENEJB-1836 Added test case to prove behaviour

* Added test case to prove the presence of the desired warning
* Fixed spelling in Messages.properties
* Inlined redundant variables in CheckAnnotationTest test cases