@Test(timeout=60000)
public void testDisableVolumeScanner() throws Exception {

  Configuration conf = new Configuration();
  disableBlockScanner(conf);
  TestContext ctx = new TestContext(conf, 1);
  try {
    Assert.assertFalse(ctx.datanode.getBlockScanner().isEnabled());
  } finally {
    ctx.close();
  }
}