Bug 293357 [context] Switch annotation processing to JSR 330
tests/org.eclipse.e4.core.commands.tests/src/org/eclipse/e4/core/commands/tests/HandlerTest.java
}
	public void testDeactivateHandler() throws Exception {
		EHandlerService hs = (EHandlerService) workbenchContext
				.get(EHandlerService.class.getName());
		CallHandler handler = new CallHandler();
		hs.activateHandler(TEST_ID1, handler);
		assertFalse(handler.q1);
		assertFalse(handler.q2);
		ECommandService cs = (ECommandService) workbenchContext
				.get(ECommandService.class.getName());
		ParameterizedCommand cmd = cs.createCommand(TEST_ID1, null);
		assertTrue(hs.canExecute(cmd));
		assertFalse(handler.q2);
		hs.deactivateHandler(TEST_ID1, handler);
		assertNull(hs.executeHandler(cmd));
		assertTrue(handler.q1);
		assertFalse(handler.q2);
	}
	public void testActiveHandlerExecuteWorkbench() throws Exception {
		IEclipseContext c1 = TestUtil.createContext(workbenchContext, "c1");
		workbenchContext.set(IContextConstants.ACTIVE_CHILD, c1);
		EHandlerService h1 = (EHandlerService) c1.get(EHandlerService.class
				.getName());
		CallHandler handler1 = new CallHandler();
		h1.activateHandler(TEST_ID1, handler1);
		ECommandService cs = (ECommandService) c1.get(ECommandService.class
				.getName());
		ParameterizedCommand cmd = cs.createCommand(TEST_ID1, null);
		assertTrue(h1.canExecute(cmd));
		EHandlerService wHS = (EHandlerService) workbenchContext