### Question:
ParseConfig { public static ParseConfig getCurrentConfig() { try { return ParseTaskUtils.wait(getConfigController().getCurrentConfigController() .getCurrentConfigAsync() ); } catch (ParseException e) { return new ParseConfig(); } } ParseConfig(Map<String, Object> params);   ParseConfig(); static ParseConfig getCurrentConfig(); static ParseConfig get(); static void getInBackground(ConfigCallback callback); static Task<ParseConfig> getInBackground(); Object get(String key); Object get(String key, Object defaultValue); boolean getBoolean(String key); boolean getBoolean(String key, boolean defaultValue); Date getDate(String key); Date getDate(String key, Date defaultValue); double getDouble(String key); double getDouble(String key, double defaultValue); int getInt(String key); int getInt(String key, int defaultValue); JSONArray getJSONArray(String key); JSONArray getJSONArray(String key, JSONArray defaultValue); JSONObject getJSONObject(String key); JSONObject getJSONObject(String key, JSONObject defaultValue); List<T> getList(String key); List<T> getList(String key, List<T> defaultValue); long getLong(String key); long getLong(String key, long defaultValue); Map<String, V> getMap(String key); Map<String, V> getMap(String key, Map<String, V> defaultValue); Number getNumber(String key); Number getNumber(String key, Number defaultValue); ParseFile getParseFile(String key); ParseFile getParseFile(String key, ParseFile defaultValue); ParseGeoPoint getParseGeoPoint(String key); ParseGeoPoint getParseGeoPoint(String key, ParseGeoPoint defaultValue); String getString(String key); String getString(String key, String defaultValue); @Override String toString();  }### Answer:
@Test public void testGetCurrentConfigSuccess() throws Exception { final Map<String, Object> params = new HashMap<>(); params.put("string", "value"); ParseConfig config = new ParseConfig(params); ParseConfigController controller = new ParseConfigController(mock(ParseHttpClient.class), mockParseCurrentConfigControllerWithResponse(config)); ParseCorePlugins.getInstance().registerConfigController(controller); ParseConfig configAgain = ParseConfig.getCurrentConfig(); assertSame(config, configAgain); }
@Test public void testGetCurrentConfigSuccess() { final Map<String, Object> params = new HashMap<>(); params.put("string", "value"); ParseConfig config = new ParseConfig(params); ParseConfigController controller = new ParseConfigController(mock(ParseHttpClient.class), mockParseCurrentConfigControllerWithResponse(config)); ParseCorePlugins.getInstance().registerConfigController(controller); ParseConfig configAgain = ParseConfig.getCurrentConfig(); assertSame(config, configAgain); }