title: not able to inject mock using Dagger
body: <p>I am new to Dagger and Mockito. I am tring to use constructor defined in Dagger module in Unit test so the object is created with default values.</p>
  <p>This is the Module:</p>
  <p>@Module
  class AutoCloseCountDownTimerModule {</p>
  <pre><code>@Provides
  @Singleton
  fun getAutoCloseCountDownTimer(
      userInteractionClient: UserInteractionClient,
      rxPositionManager: RxPositionManager
  ): AutoCloseCountDownTimer {
      return AutoCloseCountDownTimer(userInteractionClient, rxPositionManager, 15000, 45000)
  }
  </code></pre>
  <p>This is how I tried to Mock the AutoCloseCountDown class in unit test:</p>
  <p>@RunWith(MockitoJUnitRunner.class)
  public class AutoCloseCountDownTimerTest {</p>
  <pre><code>@Mock
  private AutoCloseCountDownTimer autoCloseCountDownTimer;
  
  @Before
  public void setUp() {
      MockitoAnnotations.initMocks(this);
  }
  
  @Test
  public void basicTest() {
      final AutoCloseCountDownTimer.Listener mockListener = Mockito.mock(AutoCloseCountDownTimer.Listener.class);
      autoCloseCountDownTimer.registerListener(mockListener);
  
      final int expectedValue = 10;
      autoCloseCountDownTimer.notifyOnAutoClose(expectedValue);
      Mockito.verify(mockListener).onAutoClose(expectedValue);
  </code></pre>
  <p>How can I achieve that the autoclosedCountDownTimer will be used in Test with values predefined by dagger?</p>