Taken from https://github.com/checkstyle/regression-tool/pull/50#pullrequestreview-49476395 We need to add test to appease the codecov for class `CheckstyleInjector` and `InjectException`