VersionService { @GET @Produces(MediaType.TEXT_PLAIN) public String get() { return VERSION; }  @GET @Produces(MediaType.TEXT_PLAIN) String get(); @GET @Path(ContextPaths.VENDOR) @Produces(MediaType.TEXT_PLAIN + "; charset=UTF-8") String getVendor();  }
@Test public void shouldInvokeVersionRestService() { final String url = restServiceUrl + ContextPaths.VERSION; Response response = get(url); assertThat(response.getStatusCode(), is(200)); assertThat(response.asString(), is(VersionService.VERSION)); }
@Test public void shouldInvokeVendorRestService() { final String url = restServiceUrl + ContextPaths.VERSION + ContextPaths.VENDOR; Response response = get(url); assertThat(response.getStatusCode(), is(200)); assertThat(response.asString(), is(VersionService.VENDOR)); }