### Question:
Partner { public static ResourceEntry getResourceEntry(Context context, @AnyRes int id) { final Partner partner = Partner.get(context); if (partner != null) { final Resources ourResources = context.getResources(); final String name = ourResources.getResourceEntryName(id); final String type = ourResources.getResourceTypeName(id); final int partnerId = partner.getIdentifier(name, type); if (partnerId != 0) { return new ResourceEntry(partner.resources, partnerId, true); } } return new ResourceEntry(context.getResources(), id, false); } 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 getResourceEntry_hasOverlay_shouldReturnOverlayValue() { new PartnerPackageBuilder("test.partner.package") .injectResources() .putInteger("suwTransitionDuration", 5000); ResourceEntry entry = Partner.getResourceEntry(application, R.integer.suwTransitionDuration); int partnerValue = entry.resources.getInteger(entry.id); assertThat(partnerValue).named("partner value").isEqualTo(5000); assertThat(entry.isOverlay).isTrue(); }