@Test
public void testUpdateConfig() throws Exception {

  Map<String, String> commandParams = new HashMap<String, String>();
  commandParams.put(KerberosServerAction.DATA_DIRECTORY, dataDir);
  ExecutionCommand executionCommand = new ExecutionCommand();
  executionCommand.setCommandParams(commandParams);
  ConfigHelper configHelper = injector.getInstance(ConfigHelper.class);
  configHelper.updateConfigType(anyObject(Cluster.class), anyObject(AmbariManagementController.class),
      anyObject(String.class), EasyMock.<Map<String, String>>anyObject(), EasyMock.<Collection<String>>anyObject(), anyObject(String.class), anyObject(String.class));
  expectLastCall().atLeastOnce();
  replayAll();
  action.setExecutionCommand(executionCommand);
  action.execute(null);
  verifyAll();
}