### Question:
RequestDataConverter { public static Double getRegionRatioByCityCode(String cityCode) { if (CITY_CODE_REGION_MAP.containsKey(cityCode)) { return (Double) (CITY_CODE_REGION_MAP.get(cityCode).get(1)); } return 0.0; } private  RequestDataConverter(); static String getRegionByCityCode(String cityCode); static String getRegionByCityName(String cityName); static String getCityCodeByCityName(String cityName); static Double getRegionRatioByCityCode(String cityCode); static Map<String, Double> getRegionRatioMap(TargetingChannel targetingChannel); static double getHourDayRatio(List<Integer> listOfHours); static Map<Double, List<String>> buildRatioCityCodeRegionMap(List<String> iplCityCodes); static Map<Double, List<String>> buildRatioResidenceRegionMap(List<String> residenceCityNames);  }### Answer:
@Test public void getRegionRatioByCityCode() { String city = "1156510600"; Double res = RequestDataConverter.getRegionRatioByCityCode(city); assertEquals(0.18081531414398017, res, 0.1); city = "123"; res = RequestDataConverter.getRegionRatioByCityCode(city); assertEquals(0D, res, 0D); }