RestClientProperties { public String getUrl() { return env.getProperty(WORKSPACE_API_REST_URL); }  String getUrl(); boolean isURLSet();  }
@Test public void should_retrieve_rest_api_url_from_system_property() throws Exception { when(env.getProperty(RestClientProperties.WORKSPACE_API_REST_URL)).thenReturn("http: assertThat(restClientProperties.getUrl()).isEqualTo( "http: }
@Test public void should_retrieve_null_url_if_system_property_not_set() throws Exception { assertThat(restClientProperties.getUrl()).isNull(); }