REST jersey api with GSON and test cases