Shock testing is an important issue for the survivability of an equipment under shock environment in aerospace and military industries. One of the problems faced in conventional shock testing devices is the need for redesigning of the geometry whenever the responses to different shock environments are tested. To circumvent the redesigning processes, a structure with two 'acoustic black holes (ABHs)' on both ends, referred to as the beam with dual ABHs, is proposed as a shock testing device. The beam with dual ABHs is capable of simulating diverse shock environments by controlling the applied force because it can be regarded as an infinite beam at high frequency range with the aid of the anechoic terminations by the ABHs. To systematically investigate the beam with dual ABHs, we develop a wave-based method that uses the reflection matrix of an ABH to perform free and forced vibration analyses. From the analyses on frequency response function and shock response spectrum of the beam with dual ABH, it is suggested that the beam with dual ABHs is feasible as a semi-permanent shock testing device.