@@ -0,0 +1,1855 @@
+package io.github.plastix.forage.util;%0A%0Aimport android.graphics.drawable.Drawable;%0Aimport android.support.v4.graphics.drawable.DrawableCompat;%0Aimport android.view.MenuItem;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.powermock.api.mockito.PowerMockito;%0Aimport org.powermock.core.classloader.annotations.PrepareForTest;%0Aimport org.powermock.modules.junit4.PowerMockRunner;%0A%0Aimport static org.mockito.Matchers.any;%0Aimport static org.mockito.Matchers.anyInt;%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.never;%0Aimport static org.mockito.Mockito.only;%0Aimport static org.mockito.Mockito.verify;%0Aimport static org.mockito.Mockito.when;%0A%0A@RunWith(PowerMockRunner.class)%0A@PrepareForTest(DrawableCompat.class)%0Apublic class MenuUtilsTest %7B%0A%0A    private MenuItem menuItem;%0A%0A    @Before%0A    public void beforeEachTest() %7B%0A        menuItem = mock(MenuItem.class);%0A        PowerMockito.mockStatic(DrawableCompat.class);%0A    %7D%0A%0A    @Test%0A    public void tintMenuItemIcon_shouldTintIcon() %7B%0A        int color = 0;%0A        Drawable icon = mock(Drawable.class);%0A        when(menuItem.getIcon()).thenReturn(icon);%0A%0A        Drawable wrapped = mock(Drawable.class);%0A        when(DrawableCompat.wrap(icon)).thenReturn(wrapped);%0A%0A        MenuUtils.tintMenuItemIcon(color, menuItem);%0A%0A        verify(icon).mutate();%0A        PowerMockito.verifyStatic();%0A        DrawableCompat.setTint(wrapped, color);%0A        verify(menuItem).setIcon(icon);%0A    %7D%0A%0A    @Test%0A    public void tintMenuItemIcon_noIconDoesNothing() %7B%0A        int color = 0;%0A        when(menuItem.getIcon()).thenReturn(null);%0A%0A        MenuUtils.tintMenuItemIcon(color, menuItem);%0A%0A        PowerMockito.verifyStatic(never());%0A        DrawableCompat.setTint(any(Drawable.class), anyInt());%0A        verify(menuItem, only()).getIcon();%0A    %7D%0A%7D%0A

Add MenuUtils unit tests