Example of how to make testable JAX-RS Resources with Mockito