sonar - Avoid appending characters as strings in StringBuffer.append + add unit test
StringBuffer.append