### Question:
ApplicationProperties extends Properties { @Override public String getProperty(String key) { return StringUtils.trim(super.getProperty(key)); } protected  ApplicationProperties(); String getDomain(); void resolveAlias(); @Override String getProperty(String key); @Override String getProperty(String key, String defaultValue); static final String CREDENTIAL_PROVIDER_PROPERTY; static final String ALIAS_PROPERTY_PREFIX; }### Answer:
@Test public void testPropertiesWithSpaces() throws Exception{ ApplicationProperties properties = new ConfigLocation(); properties.put("key1", "value with trailing spaces. "); properties.put("key2", " value with leading spaces."); properties.put("key3", " value with spaces on both ends. "); Assert.assertEquals(properties.getProperty("key1"), "value with trailing spaces."); Assert.assertEquals(properties.getProperty("key2"), "value with leading spaces."); Assert.assertEquals(properties.getProperty("key3"), "value with spaces on both ends."); }