OkeyDoke is An Approval Testing library for Java and JUnit. It can help automate approval of changes to code generation, and thus move the burden from copy-pasting into checking the output by eye (which is a lot faster).
Libraries such as http4k Use the same model. and they even recommend the same IDEA Plugin