ethod or using an <code class="lang-kotlin">@Inject</code> annotated constructor.</p><p class="paragraph">Auto Dagger allows you to annotate a Kotlin object with <code class="lang-kotlin">@Replaces</code> without it being provided in the graph. This is especially useful for tests:</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">@Replaces(ThreadPoolExecutor::class)<br>object DirectExecutor : Executor {<br>  override fun execute(command: Runnable) {<br>    command.run()<br> 