mil.dod.th.ose.gui.webapp/test/mil/dod/th/ose/gui/webapp/asset/TestAssetCommandMgrImpl.java
@Test
    public void testCommandResponseHandlerWithNonHandledAssetMessage() throws InvalidProtocolBufferException
    {
        SyncCommandResponseHandler commandResponseHandler = m_SUT.new SyncCommandResponseHandler();

        AssetNamespace namespaceMessage = AssetNamespace.newBuilder().setType(
                AssetMessageType.GetNameResponse).build();
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.createTerraHarvestMessage(CONTROLLER_ID, 0, 
                Namespace.Asset, 5000, namespaceMessage);
        TerraHarvestPayload payload = TerraHarvestPayload.parseFrom(thMessage.getTerraHarvestPayload());
        
        commandResponseHandler.handleResponse(thMessage, payload, namespaceMessage, null);
        
        verify(m_GrowlUtil, never()).createGlobalFacesMessage(eq(FacesMessage.SEVERITY_INFO), 
                Mockito.anyString(), Mockito.anyString());
    }
/**
     * Verify another AssetNamespace message does not get handled.
     */
Verify another AssetNamespace message does not get handled.
Verify another AssetNamespace message does not get handled .
@Test
    public void testCommandResponseHandlerWithNonHandledAssetMessage() throws InvalidProtocolBufferException
    {
        SyncCommandResponseHandler commandResponseHandler = m_SUT.new SyncCommandResponseHandler();
        AssetNamespace namespaceMessage = AssetNamespace.newBuilder().setType(
                AssetMessageType.GetNameResponse).build();
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.createTerraHarvestMessage(CONTROLLER_ID, 0, 
                Namespace.Asset, 5000, namespaceMessage);
        TerraHarvestPayload payload = TerraHarvestPayload.parseFrom(thMessage.getTerraHarvestPayload());
        commandResponseHandler.handleResponse(thMessage, payload, namespaceMessage, null);
        verify(m_GrowlUtil, never()).createGlobalFacesMessage(eq(FacesMessage.SEVERITY_INFO), 
                Mockito.anyString(), Mockito.anyString());
    }
@ Test public void testCommandResponseHandlerWithNonHandledAssetMessage ( ) throws InvalidProtocolBufferException { SyncCommandResponseHandler commandResponseHandler = m_SUT . new SyncCommandResponseHandler ( ) ; AssetNamespace namespaceMessage = AssetNamespace . newBuilder ( ) . setType ( AssetMessageType . GetNameResponse ) . build ( ) ; TerraHarvestMessage thMessage = TerraHarvestMessageHelper . createTerraHarvestMessage ( CONTROLLER_ID , 0 , Namespace . Asset , 5000 , namespaceMessage ) ; TerraHarvestPayload payload = TerraHarvestPayload . parseFrom ( thMessage . getTerraHarvestPayload ( ) ) ; commandResponseHandler . handleResponse ( thMessage , payload , namespaceMessage , null ) ; verify ( m_GrowlUtil , never ( ) ) . createGlobalFacesMessage ( eq ( FacesMessage . SEVERITY_INFO ) , Mockito . anyString ( ) , Mockito . anyString ( ) ) ; }
Verify another AssetNamespace message does not get handled.
Verify another AssetNamespace message does not get handled .