### Question:
Partner { public static int getColor(Context context, @ColorRes int id) { final ResourceEntry resourceEntry = getResourceEntry(context, id); return resourceEntry.resources.getColor(resourceEntry.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 getColor_partnerValuePresent_shouldReturnPartnerValue() { new PartnerPackageBuilder("test.partner.package") .injectResources() .putColor("suw_color_accent_dark", 0xffff00ff); final int color = Partner.getColor(application, R.color.suw_color_accent_dark); assertThat(color).isEqualTo(0xffff00ff); }