expose a rest service handler mock