This paper presents control system design, implementation, and test using hardware-in-the-loop (HIL) of a single-stage 400W, 200kHz solar photovoltaic (PV) microinverter. The selected circuit topology is a Gallium Nitride (GaN) direct matrix-based dual active bridge (DAB) converter with an active power decoupler (APD) circuit. Control performance is verified, smart-grid compatibility is tested, and circuit operation is confirmed. Controller HIL is shown to aid in a complex power electronics system design by (1) enabling detailed control development prior to hardware implementation, (2) expanding the use of automated testing, and (3) increasing confidence in control performance prior to prototype testing.