@Test
void createVelocityEngine() throws Exception
{

    assertNull(this.velocityFactory.getVelocityEngine("somekey"));
    assertFalse(this.velocityFactory.hasVelocityEngine("somekey"));
    VelocityEngine mockEngine = this.componentManager.registerMockComponent(VelocityEngine.class);
    Properties props = new Properties();
    props.setProperty("prop1", "value1");
    this.velocityFactory.createVelocityEngine("somekey", props);
    assertSame(mockEngine, this.velocityFactory.getVelocityEngine("somekey"));
    assertTrue(this.velocityFactory.hasVelocityEngine("somekey"));
    verify(mockEngine).initialize(props);
}