GeosupportServiceImpl implements GeosupportService { @Override public Map<String, Object> callFunctionDG(String streetCodeOne, String streetCodeTwo, String streetCodeThree, Integer length, String format) { return callStreetNameFunction(streetCodeOne, streetCodeTwo, streetCodeThree, length, format); } GeosupportServiceImpl(AppConfig serviceConfiguration); @Override Map<String, Object> callFunctionAP(String houseNumber, String street, String borough, String zip); @Override Map<String, Object> callFunction1B(final String houseNumber, final String street, final String borough,
            final String zip); @Override Map<String, Object> callFunction2(final String crossStreetOne, final String boroughCrossStreetOne,
            final String crossStreetTwo, final String boroughCrossStreetTwo, final String compassDirection); @Override Map<String, Object> callFunction3(final String onStreet, final String boroughOnStreet,
            final String crossStreetOne, final String boroughCrossStreetOne, final String crossStreetTwo,
            final String boroughCrossStreetTwo, final String compassDirection); @Override Map<String, Object> callFunctionBL(final String borough, final String block, final String lot); @Override Map<String, Object> callFunctionBN(final String bin); @Override Map<String, Object> callFunctionHR(); @Override Map<String, Object> callGeosupport(final Map<String, Object> clientParams); @Override Map<String, Object> callFunctionN(String streetName, Integer length, String format); @Override Map<String, Object> callStreetNameFunction(String codeOne, String codeTwo, String codeThree, Integer length, String format); @Override Map<String, Object> callFunctionD(String streetCodeOne, String streetCodeTwo, String streetCodeThree,
            Integer length, String format); @Override Map<String, Object> callFunctionDG(String streetCodeOne, String streetCodeTwo, String streetCodeThree,
            Integer length, String format); @Override Map<String, Object> callFunctionDN(String streetCodeOne, String streetCodeTwo, String streetCodeThree,
            Integer length, String format); Documentation getDocumentation(); @Override Version version();  }
@Test public void testCallFunctionDG() { Map<String, Object> arguments = new HashMap<String, Object>(); arguments.put(STREET_CODE, "1234567"); arguments.put(STREET_CODE2, "1234567"); arguments.put(STREET_CODE3, "1234567"); arguments.put(BOROUGH_CODE, 1); arguments.put(BOROUGH_CODE2, 2); arguments.put(BOROUGH_CODE3, 3); arguments.put(NORMALIZATION_FORMAT, NORMALIZATION_FORMAT_SORT_VALUE); arguments.put(NORMALIZATION_LENGTH, 20); mockFunctionCall(FDG, arguments); Map<String, Object> actualResult = geosupportServiceImpl.callFunctionDG("11234567","21234567","312 arguments.put(GEOSUPPORT_FUNCTION_CODE, FHR);\n" + "34567", 20, NORMALIZATION_FORMAT_SORT_VALUE); verifyMocks(actualResult); }