@Test public void testHdfsConfApplied() throws Exception { final HDFSConf conf = new HDFSConf(); conf.hostname = "localhost"; conf.shortCircuitFlag = HDFSConf.ShortCircuitFlag.ENABLED; conf.shortCircuitSocketPath = "/tmp/dn.sock"; conf.propertyList = Arrays.asList(new Property("foo", "bar")); SabotContext context = mock(SabotContext.class); when(context.getClasspathScan()).thenReturn(DremioTest.CLASSPATH_SCAN_RESULT); Provider<StoragePluginId> idProvider = () -> { return new StoragePluginId(null, conf, null); }; try(HDFSStoragePlugin fileSystemPlugin = new HDFSStoragePlugin(conf, context, "test-plugin", null, idProvider)) { fileSystemPlugin.start(); final Configuration fsConf = fileSystemPlugin.getFsConf(); assertThat(fsConf.get("dfs.client.read.shortcircuit"), is("true")); assertThat(fsConf.get("dfs.domain.socket.path"), is("/tmp/dn.sock")); assertThat(fsConf.get("foo"), is("bar")); } }