@Test @SmallTest public void unbind_hasntBound_throwsIllegalStateException() { try { mBufferedServiceConnection.unbind(); fail(); } catch (IllegalStateException expected) { } }
void unbind() { if (!mHasBound) { throw new IllegalStateException("bindService must be called before unbind"); } mIsDead = true; mContext.unbindService(mConnection); }
BufferedServiceConnection { void unbind() { if (!mHasBound) { throw new IllegalStateException("bindService must be called before unbind"); } mIsDead = true; mContext.unbindService(mConnection); } }
BufferedServiceConnection { void unbind() { if (!mHasBound) { throw new IllegalStateException("bindService must be called before unbind"); } mIsDead = true; mContext.unbindService(mConnection); } BufferedServiceConnection(
            Executor executor, Context context, Intent bindIntent, int flags); }
BufferedServiceConnection { void unbind() { if (!mHasBound) { throw new IllegalStateException("bindService must be called before unbind"); } mIsDead = true; mContext.unbindService(mConnection); } BufferedServiceConnection(
            Executor executor, Context context, Intent bindIntent, int flags);  }
BufferedServiceConnection { void unbind() { if (!mHasBound) { throw new IllegalStateException("bindService must be called before unbind"); } mIsDead = true; mContext.unbindService(mConnection); } BufferedServiceConnection(
            Executor executor, Context context, Intent bindIntent, int flags);   }