De-risking Microgrids with Real-Time Simulation and HIL Testing