@Test
public void isAlive() throws Exception {

    HandlerThreadWrapper mHandlerThreadWrapper = new HandlerThreadWrapper("test");
    boolean result = mHandlerThreadWrapper.isAlive();
    assertTrue(result);
    mHandlerThreadWrapper.quit();
    //make sure thread has quited
    Thread.sleep(200);
    result = mHandlerThreadWrapper.isAlive();
    assertFalse(result);
}