@Test
void dispose() throws Exception
{

    ComponentManager componentManager = System.initialize();
    TestComponent testComponent = componentManager.getInstance(TestRole.class);
    assertFalse(testComponent.isDisposed());
    System.dispose(componentManager);
    assertTrue(testComponent.isDisposed());
}