PushIntentUtils { static String getMessage(Intent pushIntent) { return pushIntent.getStringExtra(EXTRA_MESSAGE); }    }
@Test public void getMessage() { String pushMessage = "push message"; Intent pushIntent = mock(Intent.class); mockPutExtra(pushIntent, PushIntentUtils.EXTRA_MESSAGE, pushMessage); String retrievedMessage = PushIntentUtils.getMessage(pushIntent); assertEquals(pushMessage, retrievedMessage); }