SuperProperties extends Properties { @Override public String getProperty(String key) { return SystemConfiguration.replaceSystemProperties(super.getProperty(key)); }  @Override String getProperty(String key);  }
@Test public void testGetProperty() { assertEquals("Properties values should be the same!", props.getProperty(TEST_PROPERTY), TEST_VALUE); }
@Test public void testGetPropertyWithProperty() { assertEquals("Properties values should be the same!", props.getProperty(TEST_PROPERTY_PLUS_DATE_PROPERTY), TEST_VALUE + _01_APR_2011); }
@Test public void testGetPropertyWithTwoProperties() { assertEquals("Properties values should be the same!", props.getProperty(TEST_PROPERTY_PLUS_DATE_PROPERTY_AND_OTHER_PROPERTY), TEST_VALUE + _01_APR_2011 + TEST_VALUE + FILE_NAME); }
@Test public void testGetPropertyWithUnsetProperty() { assertNull(props.getProperty("UnsetProperty")); }
@Test(expected=RuntimeException.class) public void testGetPropertyWithUnsetConfirguredProperty() { assertEquals("Properties values should be the same!", props.getProperty(TEST_PROPERTY_PLUS_NOT_SET_PROPERTY), TEST_VALUE + _01_APR_2011); }