GuavaMockspressoPlugin implements MockspressoPlugin { @Override public Mockspresso.Builder apply(Mockspresso.Builder builder) { assert Supplier.class != null; assert ListenableFuture.class != null; return builder .specialObjectMaker(new ListenableFutureMaker()) .specialObjectMaker(new SupplierMaker()); }  @Override Mockspresso.Builder apply(Mockspresso.Builder builder);  }
@Test public void testApply() { Mockspresso.Builder returnedBuilder = mPlugin.apply(mBuilder); verify(mBuilder).specialObjectMaker(any(ListenableFutureMaker.class)); verify(mBuilder).specialObjectMaker(any(SupplierMaker.class)); assertThat(returnedBuilder) .isNotNull() .isEqualTo(mBuilder); }