The webservice I\'ll be using expects matrix parameters:
http://tester.com/v1/customers;lastname=Jackson;firstname=Tim;bookingreference=7Y9UIY
UriBuilder and WebTarget of JAX-RS allow to add matrix params.
UriBuilder builder = ...
builder.matrixParam("lastname", "Jackson").matrixParam("firstname", "Tim")...
Try with the given().urlEncodingEnabled(false) This resolved my problem . After giving that the matrix parameter issue got resolved and able to hit the service properly