### Question:
OptionDefinition { public static OptionDefinition get(String id, InstallOptions options) { String label = _PROPS.getProperty(id + ".label"); String description = _PROPS.getProperty(id + ".description"); String[] validValues = getArray(id + ".validValues"); String defaultValue = _PROPS.getProperty(id + ".defaultValue"); if (id.equals(InstallOptions.FEDORA_HOME)) { String eFH = System.getenv("FEDORA_HOME"); if (eFH != null && eFH.length() != 0) { defaultValue = eFH; } } if (id.equals(InstallOptions.TOMCAT_HOME)) { String eCH = System.getenv("CATALINA_HOME"); if (eCH != null && eCH.length() != 0) { defaultValue = eCH; } else if (options.getValue(InstallOptions.SERVLET_ENGINE) .equals(InstallOptions.INCLUDED)) { defaultValue = options.getValue(InstallOptions.FEDORA_HOME) + File.separator + "tomcat"; } } return new OptionDefinition(id, label, description, validValues, defaultValue, options); } private  OptionDefinition(String id,
                             String label,
                             String description,
                             String[] validValues,
                             String defaultValue,
                             InstallOptions options); static OptionDefinition get(String id, InstallOptions options); String getId(); String getLabel(); String getDescription(); String[] getValidValues(); String getDefaultValue(); void validateValue(String value); void validateValue(String value, boolean unattended);  }### Answer:
@Test public void testGet() throws Exception { Map<String, String> oMap = new HashMap<String, String>(); oMap.put(InstallOptions.APIA_AUTH_REQUIRED, Boolean.toString(false)); InstallOptions installOpts = new InstallOptions(new MockDistribution(), oMap); OptionDefinition opt = OptionDefinition.get( InstallOptions.APIA_AUTH_REQUIRED, installOpts); assertNotNull(opt); }