@Test(expectedExceptions=InvalidConfigException.class)
/** Instantiation should fail with fallbackToResourceDisabled and a missing directory */
public void testErrorOnMissingSchemasDir() throws InvalidConfigException
{

  final String dirName = "/lets/hope/no/one/creates/this/dir";
  Assert.assertFalse((new File(dirName)).exists());
  FileSystemSchemaRegistryService.Config cfgBuilder = new FileSystemSchemaRegistryService.Config();
  cfgBuilder.setFallbackToResources(false);
  cfgBuilder.setSchemaDir(dirName);
  FileSystemSchemaRegistryService.build(cfgBuilder);
}