ActivityModule { @Provides Activity provideActivity() { return activity; } ActivityModule(@NonNull Activity activity);   }
@Test public void shouldProvidePassedActivity() { Activity activity = mock(Activity.class); ActivityModule activityModule = new ActivityModule(activity); assertThat(activityModule.provideActivity()).isSameAs(activity); }