CloudClientLibGenerator implements ClientLibGenerator { @Override public void generateClientLib(String discoveryDoc, String language, String languageVersion, String layout, File file) throws IOException { String boundary = getBoundary(); String form = createForm( discoveryDoc, language.toLowerCase(), languageVersion, layout, boundary); InputStream jar = postRequest(clientLibGenApiUrl, boundary, form); copyJar(jar, file); } @VisibleForTesting  CloudClientLibGenerator(String clientLibGenApiUrl); static ClientLibGenerator using(String clientLibGenApiUrl); @Override void generateClientLib(String discoveryDoc, String language, String languageVersion,
      String layout, File file); static final String BOUNDARY_PREFIX; }
@Test public void testGenerateClientLib() throws IOException { testGenerateClientLib(null); testGenerateClientLib("lv"); }