### Question:
EventManager { public static final EventManager getInstance() { return EventManager.instance; } EventManager(String name, boolean setAsGlobal); void update(); void update(int maxMillis); void queueEvent(EventData event); void triggerEvent(EventData event); void addListener(int typeID, EventListener<T> listener); void removeListener(int typeID, EventListener<T> listener); static final EventManager getInstance();  }### Answer:
@Test public void testConstructor () { EventManager.instance = null; new EventManager("test", false); assertNull(EventManager.instance); assertNull(EventManager.getInstance()); }
@Test public void testSetGlobalConstructor () { EventManager.instance = null; new EventManager("test", true); assertNotNull(EventManager.instance); assertNotNull(EventManager.getInstance()); EventManager.instance = null; }
@Test public void testGetInstance () { EventManager manager = new EventManager("test", true); EventManager manager1 = EventManager.getInstance(); EventManager manager2 = EventManager.getInstance(); assertEquals(manager, manager1); assertEquals(manager1, manager2); EventManager.instance = null; }