### Question:
ConfigurationRequirementDefaultValue extends ConfigurationRequirement<S> { public T[] getDefaultValues() { return defaultValues; } ConfigurationRequirementDefaultValue();  ConfigurationRequirementDefaultValue(String identifier);  ConfigurationRequirementDefaultValue(String identifier, int numberOfSettings);  ConfigurationRequirementDefaultValue(String identifier, int minNumberOfSetting,
                                              int maxNumberOfSetting); @XmlTransient final void checkAndSetDefaultValues(T... values); @XmlTransient T getDefaultValue(int index); @XmlTransient void applyDefaultValues(); T[] getDefaultValues(); void setDefaultValues(T[] defaultValues); @Override S[] getSettings(); @Override final void setSettings(S... settings); public T[] defaultValues; }### Answer:
@Test public void testGetDefaultValues() { ConfigurationRequirementBoolean configSpec = new ConfigurationRequirementBoolean("parameter1", 2); try { configSpec.checkAndSetDefaultValues(true, false); } catch (AlgorithmConfigurationException e) { fail(); } assertEquals(true, configSpec.getDefaultValue(0)); assertEquals(null, configSpec.getDefaultValue(2)); }