PushIntentUtils { static String getMessageId(Intent pushIntent) { return pushIntent.getStringExtra(EXTRA_GOOGLE_MESSAGE_ID); }    }
@Test public void getGoogleMessageId() { String messageId = "message id"; Intent pushIntent = mock(Intent.class); mockPutExtra(pushIntent, PushIntentUtils.EXTRA_GOOGLE_MESSAGE_ID, messageId); String retrievedMessageId = PushIntentUtils.getMessageId(pushIntent); assertEquals(messageId, retrievedMessageId); }