mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/asset/TestAssetDirectoryServiceImpl.java
@Test
    public void testObjectsAlreadyInMaps() throws IllegalArgumentException, 
        AssetException, FactoryException, FactoryObjectInformationException
    {
        Set<AssetInternal> set = new HashSet<>();
        set.add(mock(AssetInternal.class));
        when(m_Registry.getObjects()).thenReturn(set);
        final Set<Asset> allAssets = m_SUT.getAssets();
        assertThat(allAssets.size(), is(1));
    }
/**
     * Verify that all instance of assets must be unique.
     */
Verify that all instance of assets must be unique.
Verify that all instance of assets must be unique .
@Test
    public void testObjectsAlreadyInMaps() throws IllegalArgumentException, 
        AssetException, FactoryException, FactoryObjectInformationException
    {
        Set<AssetInternal> set = new HashSet<>();
        set.add(mock(AssetInternal.class));
        when(m_Registry.getObjects()).thenReturn(set);
        final Set<Asset> allAssets = m_SUT.getAssets();
        assertThat(allAssets.size(), is(1));
    }
@ Test public void testObjectsAlreadyInMaps ( ) throws IllegalArgumentException , AssetException , FactoryException , FactoryObjectInformationException { Set < AssetInternal > set = new HashSet < > ( ) ; set . add ( mock ( AssetInternal . class ) ) ; when ( m_Registry . getObjects ( ) ) . thenReturn ( set ) ; final Set < Asset > allAssets = m_SUT . getAssets ( ) ; assertThat ( allAssets . size ( ) , is ( 1 ) ) ; }
Verify that all instance of assets must be unique.
Verify that all instance of assets must be unique .