mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/mp/TestMissionProgramManagerImpl.java
@Test
    public void testMessageFactory() throws Exception
    {
        assertOptionalService(MissionProgramManager.MESSAGE_FACTORY, MessageFactory.class, 
                new Consumer<MessageFactory>()
                {
                    @Override
                    public void consume(MessageFactory service)
                    {
                        m_SUT.setMessageFactory(service);
                    }
                }, 
                new Consumer<MessageFactory>()
                {
                    @Override
                    public void consume(MessageFactory service)
                    {
                        m_SUT.unsetMessageFactory(service);
                    }
                });
    }
/**
     * Verify {@link MessageFactory} are bound correctly.
     */
Verify  MessageFactory are bound correctly.
Verify MessageFactory are bound correctly .
@Test
    public void testMessageFactory() throws Exception
    {
        assertOptionalService(MissionProgramManager.MESSAGE_FACTORY, MessageFactory.class, 
                new Consumer<MessageFactory>()
                {
                    @Override
                    public void consume(MessageFactory service)
                    {
                        m_SUT.setMessageFactory(service);
                    }
                }, 
                new Consumer<MessageFactory>()
                {
                    @Override
                    public void consume(MessageFactory service)
                    {
                        m_SUT.unsetMessageFactory(service);
                    }
                });
    }
@ Test public void testMessageFactory ( ) throws Exception { assertOptionalService ( MissionProgramManager . MESSAGE_FACTORY , MessageFactory . class , new Consumer < MessageFactory > ( ) { @ Override public void consume ( MessageFactory service ) { m_SUT . setMessageFactory ( service ) ; } } , new Consumer < MessageFactory > ( ) { @ Override public void consume ( MessageFactory service ) { m_SUT . unsetMessageFactory ( service ) ; } } ) ; }
Verify {@link MessageFactory} are bound correctly.
Verify { @link MessageFactory } are bound correctly .