Test Double using OSQL test double framework.
Test Double is supposed to be created if there is a dependency on the DDIC table. We can build it using the SAP class cl_osql_test_environment. This class implements methods of the interface if_osql_test_environment. Ref blog – Link