RestClient { public String createURI(String uri) { StringBuilder sb = new StringBuilder(clientProperties.getUrl()); if (sb.charAt(sb.length() - 1) != '/') { sb.append("/"); } sb.append(uri); return sb.toString(); } @Inject  RestClient(RestTemplate template, RestClientProperties clientProperties); RestTemplate getRestTemplate(); String createURI(String uri); boolean isConfigured();  }
@Test public void should_createURI_append_action_to_base_url() throws Exception { assertThat(restClient.createURI("someAction")).isEqualTo("http: }