@Test
public void emptyIconTest() {

    final boolean[] marker = new boolean[1];
    PackageManager manager = mock(PackageManager.class);
    when(mContext.getPackageManager()).thenReturn(manager);
    ApplicationInfo info = mock(ApplicationInfo.class);
    info.icon = 2;
    try {
        when(manager.getApplicationInfo(null, PackageManager.GET_META_DATA)).thenReturn(info);
    } catch (PackageManager.NameNotFoundException e) {
        Assert.fail();
    }
    Bundle bundle = BundleTestUtils.builder().build();
    when(getBuilder().setSmallIcon(any(Integer.class))).then(new Answer<Object>() {
        @Override
        public Object answer(InvocationOnMock invocation) throws Throwable {
            marker[0] = true;
            return null;
        }
    });
    getDecorator().decorate(getBuilder(), bundle);
    Assert.assertTrue(marker[0]);
}