@Override
 public void tearDown() throws Exception {
   super.tearDown();
   if (mReceiver != null) {
     mContext.unregisterReceiver(mReceiver);
     mReceiver = null;
   }
 }
 @Override
 public void setUp() throws Exception {
   super.setUp();
   setUpAndRegisterReceiver();
   startTestActivity(TEST_CASE_TYPE);
 }