One way to find 100% coverage is to write a test method as follows:
@Test public void coverage(){ KeyEscaper a = new KeyEscaper() { }; }
Once the problem only applies to utils classes with all static methods, it is not a problem to create them anonymously in this way.
source share