@Test
public void testSetConfigForFile() throws IOException {

  ConfigType configType = mock(ConfigType.class);
  File file = new File("src/test/resources/core-site.xml");
  when(configType.getName()).thenReturn(CORE_SITE);
  configCommands.setConfig(configType, "", file);
  Map<String, String> config = new HashMap<String, String>();
  config.put("fs.trash.interval", "350");
  config.put("ipc.client.connection.maxidletime", "30000");
  verify(client).modifyConfiguration(CORE_SITE, config);
}