A device that could convert wave energy into electricity has been demonstrated in scaled trials.