A Test Framework for an Adaptive Protection Scheme Using a Hardware-in-the-Loop Setup