UriHelper { public static String getUniformizedUri(String uri) { String[] splittedUri = uri.split(":"); if (splittedUri.length > 2) { uri = splittedUri[0] + ":" + splittedUri[1]; } uri = uri.replace("hdfs: return concatHdfsUri(PROPERTIES.getProperty(uri, uri)); } protected  UriHelper(); static String getUniformizedUri(String uri);  }
@Test public void getUniformizedUri_should_return_uri_as_provided() { Assert.assertEquals(uri, UriHelper.getUniformizedUri(uri)); }
@Test public void getUniformizedUri_should_return_uri_without_port() { Assert.assertEquals(uri, UriHelper.getUniformizedUri(uri + ":8020")); }
@Test public void getUniformizedUri_should_return_uri_with_env() { String rootUri = "hdfs: Assert.assertEquals(uri, UriHelper.getUniformizedUri(rootUri)); }
@Test public void getUniformizedUri_should_return_uri_with_env_prefix() { String rootUri = "hdfs: Assert.assertEquals(rootUri + "-preprod-pa4", UriHelper.getUniformizedUri(rootUri)); }