mil.dod.th.ose.shell/test/mil/dod/th/ose/shell/TestPowerManagerCommands.java
@Test
    public void testCreateWakeLock()
    {
        String lockId = "test";
        WakeLock lock = mockWakeLock(lockId);
        when(m_PowerManager.createWakeLock(m_SUT.getClass(), lockId)).thenReturn(lock);
        
        WakeLock createdLock = m_SUT.createWakeLock(lockId);
        assertThat(createdLock, is(lock));
    }
/**
     * Verify that the create wake lock command returns the expected wake lock.
     */
Verify that the create wake lock command returns the expected wake lock.
Verify that the create wake lock command returns the expected wake lock .
@Test
    public void testCreateWakeLock()
    {
        String lockId = "test";
        WakeLock lock = mockWakeLock(lockId);
        when(m_PowerManager.createWakeLock(m_SUT.getClass(), lockId)).thenReturn(lock);
        WakeLock createdLock = m_SUT.createWakeLock(lockId);
        assertThat(createdLock, is(lock));
    }
@ Test public void testCreateWakeLock ( ) { String lockId = "test" ; WakeLock lock = mockWakeLock ( lockId ) ; when ( m_PowerManager . createWakeLock ( m_SUT . getClass ( ) , lockId ) ) . thenReturn ( lock ) ; WakeLock createdLock = m_SUT . createWakeLock ( lockId ) ; assertThat ( createdLock , is ( lock ) ) ; }
Verify that the create wake lock command returns the expected wake lock.
Verify that the create wake lock command returns the expected wake lock .