Added jersey test and updated rest client ot accept mapper