checkstyle: add test

Closes #26751.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>