wouldn't you need some more complex test involving Java code containing some code and a literal with some escaping in it?