  @Test
  public void testAccessGrandted() throws IOException {

    Bots bots = BotsUtils.readBots("http://localhost:5000/robots.txt");
    BotsHttpClient client = new BotsHttpClient(bots);
    HttpGet request = new HttpGet("http://localhost:5000/data.txt");
    HttpResponse response = client.execute(request);
    
    assertNotNull("No response", response);
    
    try (InputStream input = response.getEntity().getContent()) {
      String content = IOUtils.toString(input, "UTF-8");
      assertEquals(content, "some data");
    }
  }