public void reset() {

        removeShutdownHook();
        getLifeCycleManager().reset();
        propertyMap.clear();
        objectMap.clear();
    }
@Test
    public void resetTest() {
        context.setName("hello");
        context.putProperty("keyA", "valA");
        context.putObject("keyA", "valA");
        Assertions.assertEquals("valA", context.getProperty("keyA"));
        Assertions.assertEquals("valA", context.getObject("keyA"));
        MockLifeCycleComponent component = new MockLifeCycleComponent();
        context.register(component);
        Assertions.assertSame(component, lifeCycleManager.getLastComponent());
        context.reset();
        Assertions.assertNull(context.getProperty("keyA"));
        Assertions.assertNull(context.getObject("keyA"));
        Assertions.assertTrue(lifeCycleManager.isReset());
    }