Simulation and Closed-Loop Testing of Marine Systems