@Test
public void testSingletonBeanLifecycle() {
Weld weld = new Weld();
WeldContainer container = weld.initialize();
assertEquals("bar", container.instance().select(Translator.class).get().translate("hello"));
assertTrue(Translator.isInitCallbackInvoked);
assertTrue(Dictionary.isInitCallbackInvoked);
weld.shutdown();
assertTrue(Translator.isDestroyCallbackInvoked);
assertTrue(Dictionary.isDestroyCallbackInvoked);