mil.dod.th.ose.shell/test/mil/dod/th/ose/shell/TestPowerManagerCommands.java
private WakeLock mockWakeLock(String id)
    {
        WakeLock lock = mock(WakeLock.class);
        when(lock.getId()).thenReturn(id);
        
        return lock;
    }
/**
     * Creates a mocked WakeLock
     * @param id
     *  the id of the WakeLock 
     * @return
     *  the mocked WakeLock
     */
Creates a mocked WakeLock
@param id
the id of the WakeLock
@return
the mocked WakeLock
Creates a mocked WakeLock @param id the id of the WakeLock @return the mocked WakeLock
private WakeLock mockWakeLock(String id)
    {
        WakeLock lock = mock(WakeLock.class);
        when(lock.getId()).thenReturn(id);
        return lock;
    }
private WakeLock mockWakeLock ( String id ) { WakeLock lock = mock ( WakeLock . class ) ; when ( lock . getId ( ) ) . thenReturn ( id ) ; return lock ; }
Creates a mocked WakeLock
 @param id
  the id of the WakeLock
 @return
  the mocked WakeLock
Creates a mocked WakeLock @param id the id of the WakeLock @return the mocked WakeLock