mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestAssetGetCommandMgrImpl.java
@Test
    public void testCommandHandlerUnknownControllerId()
    {
        CommandEventHandler eventHandler = m_SUT.new CommandEventHandler();
        
        ExecuteCommandResponseData dataMsg = createVersionResponseMessage(UUID.randomUUID());
        
        Map<String, Object> map = new HashMap<>();
        map.put(RemoteConstants.EVENT_PROP_SOURCE_ID, CONTROLLER_ID);
        map.put(RemoteConstants.EVENT_PROP_DATA_MESSAGE, dataMsg);
        Event event = new Event("topic", map);
        
        eventHandler.handleEvent(event);
        
        verify(m_EventAdmin, never()).postEvent(Mockito.any(Event.class));
    }
/*
     * Verify that command handler with unknown controller doesn't do anything if controller id
     * isn't known.
     */
Verify that command handler with unknown controller doesn't do anything if controller id
isn't known.
Verify that command handler with unknown controller doesn ' t do anything if controller id isn ' t known .
@Test
    public void testCommandHandlerUnknownControllerId()
    {
        CommandEventHandler eventHandler = m_SUT.new CommandEventHandler();
        ExecuteCommandResponseData dataMsg = createVersionResponseMessage(UUID.randomUUID());
        Map<String, Object> map = new HashMap<>();
        map.put(RemoteConstants.EVENT_PROP_SOURCE_ID, CONTROLLER_ID);
        map.put(RemoteConstants.EVENT_PROP_DATA_MESSAGE, dataMsg);
        Event event = new Event("topic", map);
        eventHandler.handleEvent(event);
        verify(m_EventAdmin, never()).postEvent(Mockito.any(Event.class));
    }
@ Test public void testCommandHandlerUnknownControllerId ( ) { CommandEventHandler eventHandler = m_SUT . new CommandEventHandler ( ) ; ExecuteCommandResponseData dataMsg = createVersionResponseMessage ( UUID . randomUUID ( ) ) ; Map < String , Object > map = new HashMap < > ( ) ; map . put ( RemoteConstants . EVENT_PROP_SOURCE_ID , CONTROLLER_ID ) ; map . put ( RemoteConstants . EVENT_PROP_DATA_MESSAGE , dataMsg ) ; Event event = new Event ( "topic" , map ) ; eventHandler . handleEvent ( event ) ; verify ( m_EventAdmin , never ( ) ) . postEvent ( Mockito . any ( Event . class ) ) ; }
Verify that command handler with unknown controller doesn't do anything if controller id
 isn't known.
Verify that command handler with unknown controller doesn ' t do anything if controller id isn ' t known .