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