BISERVER-7873 - Potential bug: use of String#toUpperCase is unsafe

Fix potential bug and write JUnit.
testCase3() will fail without change at XMLABaseComponent.