HAURLSelectorImpl implements HAURLSelector { @Override public String getSelectedUrl() { if (selectedUrl == null) { selectedUrl = urls[0]; } return selectedUrl; } HAURLSelectorImpl(String[] urls, Constants.CompressionType compressionType); void checkUrl(); boolean checkUrl(String urlString); @Override String getSelectedUrl();  }
@Test public void testGetSelectedUrl() { String[] rmBasePaths = new String[]{"http: HAURLSelectorImpl haurlSelector = new HAURLSelectorImpl(rmBasePaths, Constants.CompressionType.GZIP); Assert.assertEquals(rmBasePaths[0], haurlSelector.getSelectedUrl()); }