DefaultVelocityConfiguration implements Initializable, VelocityConfiguration { @Override public Properties getProperties() { Properties props = new Properties(); props.putAll(this.defaultProperties); Properties configuredProperties = this.configuration.getProperty(PREFIX + "properties", Properties.class); if (configuredProperties != null) { props.putAll(configuredProperties); } return props; }  @Override void initialize(); @Override Properties getProperties(); @Override Properties getTools();  }
@Test void getPropertiesReturnsDefaultProperties() throws Exception { assertEquals( StringUtils.join(new String[]{ SecureUberspector.class.getName(), DeprecatedCheckUberspector.class.getName(), MethodArgumentsUberspector.class.getName() }, ','), this.configuration.getProperties().getProperty(RuntimeConstants.UBERSPECT_CLASSNAME)); assertEquals(Boolean.TRUE.toString(), this.configuration.getProperties().getProperty(RuntimeConstants.VM_PERM_INLINE_LOCAL)); assertEquals("bc", this.configuration.getProperties().getProperty(RuntimeConstants.SPACE_GOBBLING)); assertEquals(Boolean.FALSE.toString(), this.configuration.getProperties().getProperty(RuntimeConstants.CHECK_EMPTY_OBJECTS)); }