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

  File tempDir = FileUtils.createTempDir("testErrorOnEmptySchemasDir");
  Assert.assertTrue(tempDir.exists());
  FileSystemSchemaRegistryService.Config cfgBuilder = new FileSystemSchemaRegistryService.Config();
  cfgBuilder.setFallbackToResources(false);
  cfgBuilder.setSchemaDir(tempDir.getAbsolutePath());
  FileSystemSchemaRegistryService.build(cfgBuilder);
}