mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/asset/TestAssetDirectoryServiceImpl.java
@SuppressWarnings("unchecked")
    @Test
    public void testAddAsset() throws IllegalArgumentException, AssetException, 
        FactoryException, FactoryObjectInformationException, ClassNotFoundException
    {
        AssetInternal mockAsset1 = mock(AssetInternal.class);
        when(m_Registry.createNewObject(eq(m_AssetFactory), eq("asset"), 
                Mockito.any(Map.class))).thenReturn(mockAsset1);
        
        m_SUT.createAsset(PRODUCT_TYPE, "asset");
        verify(m_Registry).createNewObject(m_AssetFactory, "asset", new Hashtable<String, Object>());
        verify(m_WakeLock).activate();
        verify(m_WakeLock).cancel();
    }
/**
     * Test adding an asset.
     * 
     * Verify that the base type and uuid are correct in the posted event.
     */
Test adding an asset.

Verify that the base type and uuid are correct in the posted event.
Test adding an asset . Verify that the base type and uuid are correct in the posted event .
@SuppressWarnings("unchecked")
    @Test
    public void testAddAsset() throws IllegalArgumentException, AssetException, 
        FactoryException, FactoryObjectInformationException, ClassNotFoundException
    {
        AssetInternal mockAsset1 = mock(AssetInternal.class);
        when(m_Registry.createNewObject(eq(m_AssetFactory), eq("asset"), 
                Mockito.any(Map.class))).thenReturn(mockAsset1);
        m_SUT.createAsset(PRODUCT_TYPE, "asset");
        verify(m_Registry).createNewObject(m_AssetFactory, "asset", new Hashtable<String, Object>());
        verify(m_WakeLock).activate();
        verify(m_WakeLock).cancel();
    }
@ SuppressWarnings ( "unchecked" ) @ Test public void testAddAsset ( ) throws IllegalArgumentException , AssetException , FactoryException , FactoryObjectInformationException , ClassNotFoundException { AssetInternal mockAsset1 = mock ( AssetInternal . class ) ; when ( m_Registry . createNewObject ( eq ( m_AssetFactory ) , eq ( "asset" ) , Mockito . any ( Map . class ) ) ) . thenReturn ( mockAsset1 ) ; m_SUT . createAsset ( PRODUCT_TYPE , "asset" ) ; verify ( m_Registry ) . createNewObject ( m_AssetFactory , "asset" , new Hashtable < String , Object > ( ) ) ; verify ( m_WakeLock ) . activate ( ) ; verify ( m_WakeLock ) . cancel ( ) ; }
Test adding an asset.
Test adding an asset .