@Test
public void createCoachMarkPixelInfoTest(){

    Mockito.when(mCoachMarkBuilder.getCoachMarkLayoutMargin()).thenReturn(mCoachMarkLayoutMargin);
    Mockito.when(mCoachMarkBuilder.getImageLayoutInformation()).thenReturn(mImageLayoutInformation);
    Mockito.when(mCoachMarkLayoutMargin.getBottomMarginForCoachMark()).thenReturn(mockedDimenRes);
    Mockito.when(mCoachMarkLayoutMargin.getLeftMarginForCoachMark()).thenReturn(mockedDimenRes);
    Mockito.when(mCoachMarkLayoutMargin.getRightMarginForCoachMark()).thenReturn(mockedDimenRes);
    Mockito.when(mCoachMarkLayoutMargin.getTopMarginForCoachMark()).thenReturn(mockedDimenRes);
    Mockito.when(mCoachMarkBuilder.getActionBarHeight()).thenReturn(mockedDimenRes);
    Mockito.when(mCoachMarkBuilder.getFooterHeight()).thenReturn(mockedDimenRes);
    Mockito.when(mImageLayoutInformation.getImageHeight()).thenReturn(mockedDimenRes);
    Mockito.when(mImageLayoutInformation.getImageWidth()).thenReturn(mockedDimenRes);
    Mockito.when(mDimensionResourceProvider.getDimensionInPixel(Matchers.anyInt())).thenReturn(10);
    CoachMarkPixelInfo coachMarkPixelInfo = mPopUpCoachMarkPresenter.createCoachMarkPixelInfo();
    assertEquals(10, coachMarkPixelInfo.getImageHeightInPixels());
    assertEquals(10, coachMarkPixelInfo.getImageWidthInPixels());
    assertEquals(30, coachMarkPixelInfo.getPopUpHeightInPixelsWithOffset());
    assertEquals(30, coachMarkPixelInfo.getPopUpWidthInPixelsWithOffset());
    assertEquals(10, coachMarkPixelInfo.getWidthHeightOffsetForCoachMarkPopUp());
    assertEquals(10, coachMarkPixelInfo.getNotchDimenInPixels());
    assertEquals(10, coachMarkPixelInfo.getActionBarHeightPixels());
    assertEquals(10, coachMarkPixelInfo.getFooterHeightPixels());
}