class PopUpCoachMarkPresenter {

    protected void setGravityForCoachMarkText(int textAlignmentForPopUpText) {
        switch (textAlignmentForPopUpText) {
            case CoachMarkTextGravity.CENTER:
                mPresentation.setUpGravityForCoachMarkText(CoachMarkTextGravity.CENTER);
                break;
            case CoachMarkTextGravity.LEFT:
                mPresentation.setUpGravityForCoachMarkText(CoachMarkTextGravity.LEFT);
                break;
            case CoachMarkTextGravity.RIGHT:
                mPresentation.setUpGravityForCoachMarkText(CoachMarkTextGravity.RIGHT);
                break;
        }
    }

}

class PopUpCoachMarkPresenterTest {

    @Mock CoachMarkBuilder mCoachMarkBuilder;
    @Mock IPopUpCoachMarkPresentation mPopUpCoachMarkPresentation;
    @Mock IStringResourceProvider mStringResourceProvider;
    @Mock IDimensionResourceProvider mDimensionResourceProvider;
    @Mock IScreenInfoProvider mScreenInfoProvider;
    @Mock ITypeFaceProvider mTypeFaceProvider;
    @Mock
    @StringRes int mockedStringRes;
    @Mock
    @ColorRes int mockedColorRes;
    @Mock
    @DrawableRes int mockedDrawableRes;
    @Mock CoachMarkLayoutMargin mCoachMarkLayoutMargin;
    @Mock ImageLayoutInformation mImageLayoutInformation;
    @Mock
    @DimenRes int mockedDimenRes;
    private PopUpCoachMarkPresenter mPopUpCoachMarkPresenter;
    private CoachMarkPixelInfo mCoachMarkPixelInfo;

    @Test
    public void setGravityForCoachMarkTextCenterGravityTest() {

        mPopUpCoachMarkPresenter.setGravityForCoachMarkText(CoachMarkTextGravity.LEFT);

        Mockito.verify(mPopUpCoachMarkPresentation, Mockito.times(1))
                .setUpGravityForCoachMarkText(CoachMarkTextGravity.LEFT);
        Mockito.verifyNoMoreInteractions(mPopUpCoachMarkPresentation);
    }

}