@Test
public void handleMessage_wakeLockAcquireRelease_methodTransaction() {

    PowerManager pm = (PowerManager) ShadowApplication.getInstance().getApplicationContext().getSystemService(Context.POWER_SERVICE);
    final PowerManager.WakeLock wakeLock = Shadows.shadowOf(pm).newWakeLock(0, "test-wakelock");
    ActorHandlerBase handler = createHandler(ActorHandlerBase.NO_DELAY, wakeLock);
    Transaction transaction = Transaction.<Object>obtain(mImpl, mMessage, mFailureHandler);
    android.os.Message message = android.os.Message.obtain(handler, ActorHandlerBase.MSG_TRANSACTION,
            10, 0, transaction);
    handler.handleMessage(message);
    Assert.assertSame(wakeLock, ShadowPowerManager.getLatestWakeLock());
    Assert.assertEquals(false, wakeLock.isHeld());
}