### Question:
MeliProgressBar extends FrameLayout { public void start(@Nullable final Animator.AnimatorListener animatorListener) { if (animator != null) { animator.removeAllListeners(); animator.cancel(); } progressBar.setProgress(INITIAL_PROGRESS); animator = ObjectAnimator.ofInt(progressBar, PROGRESS_PROPERTY, 0, maxProgressTime); animator.setInterpolator(new LinearInterpolator()); if (animatorListener != null) { animator.addListener(animatorListener); } animator.setDuration(maxProgressTime); showText(); inProgress = true; animator.start(); } MeliProgressBar(final Context context);  MeliProgressBar(final Context context, final AttributeSet attrs);  MeliProgressBar(final Context context, final AttributeSet attrs, final int defStyleAttr); @TargetApi(Build.VERSION_CODES.LOLLIPOP)  MeliProgressBar(final Context context, final AttributeSet attrs,
        final int defStyleAttr, final int defStyleRes); void start(@Nullable final Animator.AnimatorListener animatorListener); void finish(@Nullable final Animator.AnimatorListener animatorListener); void restart(); void removeAnimListeners(); MeliProgressBar setMaxProgressTime(final int maxProgressTime); MeliProgressBar setFinishAnimTime(final int finishAnimTime); MeliProgressBar setText(final CharSequence text); MeliProgressBar setTextFadeInDuration(final int textFadeInDuration); MeliProgressBar setTextDelay(final int textDelay); int getProgress(); boolean isInProgress(); @Override @NonNull String toString();  }### Answer:
@Test public void start_withDefaultSettings_andPreviousAnimator() { meliProgressBar.progressBar = progressBarMock; meliProgressBar.animator = animatorMock; meliProgressBar.start(null); verify(animatorMock).cancel(); verify(progressBarMock, times(2)).setProgress(0); }