Characterization test
A test that records what existing code currently does, so refactoring can be checked for unintended behaviour changes.
See it in context
COBOL refactoring and incremental modernization: Refactoring COBOL safely and COBOL-to-Java risks