### Question:
DistroProperties extends BaseSdkProperties { public void resolvePlaceholders(Properties projectProperties){ for(Map.Entry<Object, Object> property: properties.entrySet()){ if(hasPlaceholder(property.getValue())){ try{ Object placeholderValue = projectProperties.get(getPlaceholderKey((String)property.getValue())); if(placeholderValue == null){ throw new IllegalArgumentException("Failed to resolve property placeholders in distro file, no property for key: "+property.getKey()); } else { property.setValue(putInPlaceholder((String)property.getValue(), (String)placeholderValue)); } } catch(ClassCastException e){ throw new IllegalArgumentException("Property with key "+property.getKey()+" and value "+property.getValue()+"is not placeholder."); } } } } DistroProperties(String version);  DistroProperties(String name, String version);  DistroProperties(Properties properties);  DistroProperties(File file); boolean isH2Supported(); void setH2Support(boolean supported); String getSqlScriptPath(); String getPropertyPromt(String propertyName); String getPropertyDefault(String propertyName); String getPropertyValue(String propertyName); Set<String> getPropertiesNames(); Artifact getDistroArtifact(); List<Artifact> getModuleArtifacts(DistroHelper distroHelper, File directory); List<Artifact> getOwaArtifacts(DistroHelper distroHelper, File directory); List<Artifact> getWarArtifacts(DistroHelper distroHelper, File directory); String getPlatformVersion(DistroHelper distroHelper, File directory); void saveTo(File path); void resolvePlaceholders(Properties projectProperties); static final String PROPERTY_PROMPT_KEY; static final String DISTRO_FILE_NAME; static final String PROPERTY_DEFAULT_VALUE_KEY; static final String PROPERTY_KEY; }### Answer:
@Test(expected = IllegalArgumentException.class) public void resolvePlaceholders_shouldFailIfNoPropertyForPlaceholderFound(){ Properties properties = new Properties(); properties.setProperty("omod.fails", "${failsVersion}"); DistroProperties distro = new DistroProperties(properties); distro.resolvePlaceholders(getProjectProperties()); }