Thanks to this little code snippet below you can register HAL renderers for all your domain classes:
In this tutorial I will show you how to integrate Springs
@Autowired with Spocks tests. With this approach you will be able to annotate mock objects with
@MockBean and get them automagicly injected into tested class.