@Test
public void testCircularRedirect() throws Exception {
BaseFetcher fetcher = RobotUtils.createFetcher(ConfigUtils.BIXO_TEST_AGENT, 1);
BaseRobotsParser parser = new SimpleRobotRulesParser();
SimulationWebServerForTests webServer = new SimulationWebServerForTests();
Server server = webServer.startServer(new CircularRedirectResponseHandler(), 8089);
try {
BaseRobotRules rules = RobotUtils.getRobotRules(fetcher, parser, new URL("http://localhost:8089/robots.txt"));
Assert.assertTrue(rules.isAllowAll());
} finally {