@Test
public void testGenClientLib() throws Exception {

  tool.execute(
      new String[]{GenClientLibAction.NAME, option(EndpointsToolAction.OPTION_LANGUAGE_SHORT),
      "java", option(EndpointsToolAction.OPTION_OUTPUT_DIR_SHORT), "outputDir",
      option(EndpointsToolAction.OPTION_BUILD_SYSTEM_SHORT), "maven", "discoveryDocPath"});
  assertFalse(usagePrinted);
  assertEquals("java", language);
  assertEquals("outputDir", outputDirPath);
  assertEquals("discoveryDocPath", discoveryDocPath);
  assertEquals("maven", buildSystem);
}