mil.dod.th.ose.config/test/mil/dod/th/ose/config/loading/impl/TestFactoryObjectTrackerCustomizer.java
@Test
    public void testTranslateStringMapException()
    {
        List<StringMapEntry> props = new ArrayList<StringMapEntry>();
        props.add(new StringMapEntry("id1", "true"));
        props.add(new StringMapEntry("badId", "5"));

        try
        {
            m_FactSUT.translateStringMap(props, m_Object.getFactory());
            fail("IllegalArgumentException not thrown");
        }
        catch(IllegalArgumentException e)
        {
        }
    }
/**
     * Verify {@link StringMapEntry} that does not have a matching id in the {@link 
     * org.osgi.service.metatype.AttributeDefinition} array causes an exception.
     */
Verify  StringMapEntry that does not have a matching id in the {@link
org.osgi.service.metatype.AttributeDefinition} array causes an exception.
Verify StringMapEntry that does not have a matching id in the { @link org . osgi . service . metatype . AttributeDefinition } array causes an exception .
@Test
    public void testTranslateStringMapException()
    {
        List<StringMapEntry> props = new ArrayList<StringMapEntry>();
        props.add(new StringMapEntry("id1", "true"));
        props.add(new StringMapEntry("badId", "5"));
        try
        {
            m_FactSUT.translateStringMap(props, m_Object.getFactory());
            fail("IllegalArgumentException not thrown");
        }
        catch(IllegalArgumentException e)
        {
        }
    }
@ Test public void testTranslateStringMapException ( ) { List < StringMapEntry > props = new ArrayList < StringMapEntry > ( ) ; props . add ( new StringMapEntry ( "id1" , "true" ) ) ; props . add ( new StringMapEntry ( "badId" , "5" ) ) ; try { m_FactSUT . translateStringMap ( props , m_Object . getFactory ( ) ) ; fail ( "IllegalArgumentException not thrown" ) ; } catch ( IllegalArgumentException e ) { } }
Verify {@link StringMapEntry} that does not have a matching id in the {@link
 org.osgi.service.metatype.AttributeDefinition} array causes an exception.
Verify { @link StringMapEntry } that does not have a matching id in the { @link org . osgi . service . metatype . AttributeDefinition } array causes an exception .