In our test classes, we are using test double framework .
Here is the syntax how to config the call.
cl_abap_testdouble=>configure_call( double = item )->ignore_all_parameters( )->returning( ref_item ).
TRY.
item->get_referenced_item( logger = logger ).
CATCH cx_apoc_object.
ENDTRY. " exception for apoc object class
We need the dummy try and catch to avoid ATC check, which trigger the empty catch error all the time.
Please review if this check makes sence in test class.