Scoop { private Flavor getCurrentFlavor(boolean excludeDefault){ int index = getCurrentFlavorIndex(); if(index != mDefaultFlavorIndex || !excludeDefault) { return mFlavors.get(index); } return null; } private  Scoop(); static Scoop getInstance(); static Builder waffleCone(); @Deprecated static SugarCone sugarCone(); static void setDebug(boolean flag); @AppCompatDelegate.NightMode int getDayNightMode(); List<Flavor> getFlavors(); Flavor getCurrentFlavor(); @SuppressWarnings("WrongConstant") void apply(Activity activity); @SuppressWarnings("WrongConstant") void applyDialog(Activity activity); void apply(Context context, Menu menu); void choose(Flavor item); void chooseDayNightMode(@AppCompatDelegate.NightMode int mode); void bind(Activity activity); Scoop bind(Object obj, int toppingId, View view); Scoop bind(Object obj, int toppingId, View view, @Nullable ColorAdapter colorAdapter); Scoop bind(Object obj, int toppingId, View view, @Nullable ColorAdapter colorAdapter, @Nullable Interpolator interpolator); @TargetApi(Build.VERSION_CODES.LOLLIPOP) Scoop bindStatusBar(Activity activity, int toppingId); @TargetApi(Build.VERSION_CODES.LOLLIPOP) Scoop bindStatusBar(Activity activity, int toppingId, @Nullable Interpolator interpolator); Scoop bind(Object obj, int toppingId, IBinding binding); void unbind(Object obj); Scoop update(int toppingId, @ColorInt int color);  }
@Test public void getCurrentFlavor() throws Exception { Flavor currentFlavor = Scoop.getInstance().getCurrentFlavor(); assertEquals(currentFlavor, TEST_FLAVORS[1]); }