### Question:
Partner { public static CharSequence getText(Context context, @StringRes int id) { final ResourceEntry entry = getResourceEntry(context, id); return entry.resources.getText(entry.id); } private  Partner(String packageName, Resources res); static Drawable getDrawable(Context context, @DrawableRes int id); static String getString(Context context, @StringRes int id); static int getColor(Context context, @ColorRes int id); static CharSequence getText(Context context, @StringRes int id); static ResourceEntry getResourceEntry(Context context, @AnyRes int id); static synchronized Partner get(Context context); @VisibleForTesting static synchronized void resetForTesting(); String getPackageName(); Resources getResources(); int getIdentifier(String name, String defType);  }### Answer:
@Test public void getText_partnerValuePresent_shouldReturnPartnerValue() { new PartnerPackageBuilder("test.partner.package") .injectResources() .putText("suw_next_button_label", "partner"); final CharSequence partnerText = Partner.getText(application, R.string.suw_next_button_label); assertThat(partnerText.toString()).isEqualTo("partner"); }