DaggerMockspressoPlugin implements MockspressoPlugin { @Override public Mockspresso.Builder apply(Mockspresso.Builder builder) { assert dagger.Lazy.class != null; return builder .plugin(new com.episode6.hackit.mockspresso.basic.plugin.javax.JavaxInjectMockspressoPlugin()) .specialObjectMaker(new DaggerLazyMaker()); }  @Override Mockspresso.Builder apply(Mockspresso.Builder builder);  }
@Test public void testInjectionConfigSet() { Mockspresso.Builder returnedBuilder = mPlugin.apply(mBuilder); verify(mBuilder).plugin(any(JavaxInjectMockspressoPlugin.class)); verify(mBuilder).specialObjectMaker(any(DaggerLazyMaker.class)); assertThat(returnedBuilder) .isNotNull() .isEqualTo(mBuilder); }