Fix quality flaw by adding ref to JLS.
Fix quality flaw by adding unit tests.