@Test
void removeVelocityEngine() throws Exception
{

    // Try to remove non-existing engine and verify it doesn't throw any error
    this.velocityFactory.removeVelocityEngine("somekey");
    this.componentManager.registerMockComponent(VelocityEngine.class);
    this.velocityFactory.createVelocityEngine("somekey", new Properties());
    assertNotNull(this.velocityFactory.getVelocityEngine("somekey"));
    assertTrue(this.velocityFactory.hasVelocityEngine("somekey"));
    this.velocityFactory.removeVelocityEngine("somekey");
    assertNull(this.velocityFactory.getVelocityEngine("somekey"));
    assertFalse(this.velocityFactory.hasVelocityEngine("somekey"));
}