mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/controller/TestActiveControllerImpl.java
@Test
    public void testSetNullController()
    {
        assertThat(m_SUT.getActiveController(), is(nullValue()));        
        m_SUT.setActiveController(null);
        
        //verify no event was posted due to active controller already being null
        ArgumentCaptor<Event> eventCaptor = ArgumentCaptor.forClass(Event.class);
        verify(m_EventAdmin, Mockito.never()).postEvent(eventCaptor.capture());
    }
/**
     * Verify no event is posted if the current active controller
     * and new active controller are both null.  
     */
Verify no event is posted if the current active controller
and new active controller are both null.
Verify no event is posted if the current active controller and new active controller are both null .
@Test
    public void testSetNullController()
    {
        assertThat(m_SUT.getActiveController(), is(nullValue()));        
        m_SUT.setActiveController(null);
        ArgumentCaptor<Event> eventCaptor = ArgumentCaptor.forClass(Event.class);
        verify(m_EventAdmin, Mockito.never()).postEvent(eventCaptor.capture());
    }
@ Test public void testSetNullController ( ) { assertThat ( m_SUT . getActiveController ( ) , is ( nullValue ( ) ) ) ; m_SUT . setActiveController ( null ) ; ArgumentCaptor < Event > eventCaptor = ArgumentCaptor . forClass ( Event . class ) ; verify ( m_EventAdmin , Mockito . never ( ) ) . postEvent ( eventCaptor . capture ( ) ) ; }
Verify no event is posted if the current active controller
 and new active controller are both null.
Verify no event is posted if the current active controller and new active controller are both null .
//verify no event was posted due to active controller already being null