public void testGetIpcManagerNotInitialized() {
    ThrowableAnticipator ta = new ThrowableAnticipator();
    ta.anticipate(new IllegalStateException("this factory has not been initialized"));

    try {
      EventIpcManagerFactory.getIpcManager();
    } catch (Throwable t) {
      ta.throwableReceived(t);
    }

    ta.verifyAnticipated();
  }
  public void testSetIpcManagerNull() {
    ThrowableAnticipator ta = new ThrowableAnticipator();
    ta.anticipate(new IllegalArgumentException("argument ipcManager must not be null"));

    try {
      EventIpcManagerFactory.setIpcManager(null);
    } catch (Throwable t) {
      ta.throwableReceived(t);
    }

    ta.verifyAnticipated();
  }
 public void testSetIpcManager() {
   EventIpcManager manager = createMock(EventIpcManager.class);
   EventIpcManagerFactory.setIpcManager(manager);
   assertNotNull("manager should not be null", EventIpcManagerFactory.getIpcManager());
   assertEquals("manager", manager, EventIpcManagerFactory.getIpcManager());
 }
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   EventIpcManagerFactory.reset();
 }