### Question:
AtlasZookeeperURLManager extends DefaultURLManager { @Override public synchronized void markFailed(String url) { setURLs(lookupURLs()); super.markFailed(url); }  @Override boolean supportsConfig(HaServiceConfig config); @Override void setConfig(HaServiceConfig config); List<String> lookupURLs(); @Override synchronized void markFailed(String url);  }### Answer:
@Test public void testMarkFailedCorrectlyResetTheEarlierUrl() throws Exception { setAtlasActiveHostURLInZookeeper(atlasNode2); manager.markFailed("http: List<String> urls = manager.getURLs(); assertNotEquals(atlasNode1, urls.get(0)); assertEquals(atlasNode2, urls.get(0)); }