### Question:
AbstractConfigurableProvider { public void setBus(Bus b) { if (b != null) { bus = b; } }  void setBus(Bus b); Bus getBus(); void setConsumeMediaTypes(List<String> types); List<String> getConsumeMediaTypes(); void setProduceMediaTypes(List<String> types); List<String> getProduceMediaTypes(); void setEnableBuffering(boolean enableBuf); boolean getEnableBuffering(); void setEnableStreaming(boolean enableStream); boolean getEnableStreaming(); void init(List<ClassResourceInfo> resources);  }### Answer:
@Test public void testSetBus() throws Exception { AbstractConfigurableProvider provider = new AbstractConfigurableProvider() { }; Bus bus = EasyMock.createMock(Bus.class); provider.setBus(bus); Assert.assertSame(bus, provider.getBus()); }