### Question:
KeyStoreHelperUtil { public static String loadControllerPassword(final KieServerConfig config) { return loadControllerPassword(config.getConfigItemValue(KieServerConstants.CFG_KIE_CONTROLLER_PASSWORD, "kieserver1!")); }  static String loadServerPassword(); static String loadControllerPassword(final KieServerConfig config); static String loadControllerPassword(final String defaultPassword); static String loadPasswordKey(String pwdKeyAliasProperty, String pwdKeyPasswordProperty, String defaultPassword);  }### Answer:
@Test public void testDefaultPassword(){ final String defaultPassword = "default"; final String password = loadControllerPassword(defaultPassword); assertEquals(defaultPassword, password); }
@Test public void testConfigDefaultPassword(){ final KieServerConfig serverConfig = new KieServerConfig(); final String password = loadControllerPassword(serverConfig); assertEquals("kieserver1!", password); }
@Test public void testConfigPassword(){ final KieServerConfig serverConfig = new KieServerConfig(); final String defaultPassword = "default"; serverConfig.addConfigItem(new KieServerConfigItem(KieServerConstants.CFG_KIE_CONTROLLER_PASSWORD, defaultPassword, null)); final String password = loadControllerPassword(serverConfig); assertEquals(defaultPassword, password); }