BufferedServiceConnection { void send(Message message) { if (mIsDead) { return; } if (mMessenger == null) { while (mBuffer.size() >= MAX_BUFFER_SIZE) { mBuffer.poll(); } mBuffer.add(message); return; } trySendMessage(message); } BufferedServiceConnection(
            Executor executor, Context context, Intent bindIntent, int flags);   }
@Test @SmallTest public void sendMessage_notBound_doesNotSend() { Message message = buildTestMessage(); mBufferedServiceConnection.send(message); assertThat(mTestHandler.latestMessage()).isNull(); }