### Question:
IconCompat { public static IconCompat createWithAdaptiveBitmap(Bitmap bits) { if (bits == null) { throw new IllegalArgumentException("Bitmap must not be null."); } final IconCompat rep = new IconCompat(TYPE_ADAPTIVE_BITMAP); rep.mObj1 = bits; return rep; } private  IconCompat(int mType); static IconCompat createWithResource(Context context, @DrawableRes int resId); static IconCompat createWithBitmap(Bitmap bits); static IconCompat createWithAdaptiveBitmap(Bitmap bits); static IconCompat createWithData(byte[] data, int offset, int length); static IconCompat createWithContentUri(String uri); static IconCompat createWithContentUri(Uri uri); @IconType int getType(); @NonNull String getResPackage(); @IdRes int getResId(); @NonNull Uri getUri(); IconCompat setTint(@ColorInt int tint); IconCompat setTintList(ColorStateList tintList); IconCompat setTintMode(PorterDuff.Mode mode); @RequiresApi(23) Icon toIcon(); Drawable loadDrawable(Context context); @RestrictTo(LIBRARY_GROUP) @SuppressWarnings("deprecation") void addToShortcutIntent(@NonNull Intent outIntent, @Nullable Drawable badge,
            @NonNull Context c); Bundle toBundle(); @Override String toString(); static @Nullable IconCompat createFromBundle(@NonNull Bundle bundle); @RequiresApi(23) @Nullable static IconCompat createFromIcon(@NonNull Icon icon); @IconType @RequiresApi(23) static int getType(@NonNull Icon icon); @Nullable @RequiresApi(23) static String getResPackage(@NonNull Icon icon); @IdRes @RequiresApi(23) static int getResId(@NonNull Icon icon); @Nullable @RequiresApi(23) Uri getUri(@NonNull Icon icon); static final int TYPE_UNKOWN; }### Answer:
@Test @SdkSuppress(minSdkVersion = Build.VERSION_CODES.M) public void testCreateWithAdaptiveBitmap() { Bitmap bitmap = Bitmap.createBitmap(200, 200, Bitmap.Config.ARGB_8888); bitmap.eraseColor(Color.GREEN); IconCompat compat = IconCompat.createWithAdaptiveBitmap(bitmap); Drawable d = compat.toIcon().loadDrawable(InstrumentationRegistry.getContext()); if (Build.VERSION.SDK_INT >= 26) { assertTrue(d instanceof AdaptiveIconDrawable); } else { assertTrue(d instanceof BitmapDrawable); Bitmap clipped = ((BitmapDrawable) d).getBitmap(); verifyClippedCircle(clipped, Color.GREEN, clipped.getWidth()); } }