extended jax-rs test to demonstrate usage of mocks