@Test public void getColor() { String color = "color"; Intent pushIntent = mock(Intent.class); mockPutExtra(pushIntent, PushIntentUtils.EXTRA_COLOR, color); String retrievedColor = PushIntentUtils.getColor(pushIntent); assertEquals(color, retrievedColor); }
static String getColor(Intent pushIntent) { return pushIntent.getStringExtra(EXTRA_COLOR); }
PushIntentUtils { static String getColor(Intent pushIntent) { return pushIntent.getStringExtra(EXTRA_COLOR); } }
PushIntentUtils { static String getColor(Intent pushIntent) { return pushIntent.getStringExtra(EXTRA_COLOR); }  }
PushIntentUtils { static String getColor(Intent pushIntent) { return pushIntent.getStringExtra(EXTRA_COLOR); }   }
PushIntentUtils { static String getColor(Intent pushIntent) { return pushIntent.getStringExtra(EXTRA_COLOR); }    }