The entity is final so that people don’t stub it and we are safe to add new methods to it in the future.
What makes you want to stub the Entity class in your tests? Why don’t you just create an instance that you need?
Marek
> On 20 Aug 2015, at 18:30, wqt.mailbox_at_gmail.com wrote:
>
> Newbie here... What is the rationale of making
> javax.ws.rs.client.Entity "final"?
>
> I ask because it's hard to stub reasonably, which making overall unit
> testing hard.