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