ParameterTool extends ExecutionConfig.GlobalJobParameters implements Serializable, Cloneable { public static ParameterTool fromSystemProperties() { return fromMap((Map) System.getProperties()); } private  ParameterTool(Map<String, String> data); static ParameterTool fromArgs(String[] args); static ParameterTool fromPropertiesFile(String path); static ParameterTool fromMap(Map<String, String> map); static ParameterTool fromSystemProperties(); @PublicEvolving static ParameterTool fromGenericOptionsParser(String[] args); int getNumberOfParameters(); String get(String key); String getRequired(String key); String get(String key, String defaultValue); boolean has(String value); int getInt(String key); int getInt(String key, int defaultValue); long getLong(String key); long getLong(String key, long defaultValue); float getFloat(String key); float getFloat(String key, float defaultValue); double getDouble(String key); double getDouble(String key, double defaultValue); boolean getBoolean(String key); boolean getBoolean(String key, boolean defaultValue); short getShort(String key); short getShort(String key, short defaultValue); byte getByte(String key); byte getByte(String key, byte defaultValue); Configuration getConfiguration(); Properties getProperties(); void createPropertiesFile(String pathToFile); void createPropertiesFile(String pathToFile, boolean overwrite); ParameterTool mergeWith(ParameterTool other); @Override Map<String, String> toMap();  }
@Test public void testSystemProperties() { System.setProperty("input", "myInput"); System.setProperty("expectedCount", "15"); ParameterTool parameter = ParameterTool.fromSystemProperties(); validate(parameter); }