### Question:
FilterProvider implements Provider<Filter> { @Override public Filter get() { return filter; } FilterProvider(Filter filter); @Override Filter get();  }### Answer:
@Test public void returns_instance_passed_in() { Filter filter = mock(Filter.class); FilterProvider filterProvider = new FilterProvider(filter); assertThat(filterProvider.get(), is(filter)); }