### Question:
BulkProcessorFactory implements BatchEmitterFactory { @Override public boolean accepts(Class clientObjectFactoryClass) { return BulkProcessorObjectFactory.class.isAssignableFrom(clientObjectFactoryClass); }  @Override boolean accepts(Class clientObjectFactoryClass); @Override BatchEmitter createInstance(int batchSize, int deliveryInterval, ClientObjectFactory clientObjectFactory, FailoverPolicy failoverPolicy);  }### Answer:
@Test public void acceptsBulkProcessorObjectFactory() { BulkProcessorFactory emitterFactory = new BulkProcessorFactory(); boolean result = emitterFactory.accepts(BulkProcessorObjectFactory.class); Assert.assertTrue(result); }
@Test public void acceptsExtendingClientObjectFactories() { BulkProcessorFactory emitterFactory = new BulkProcessorFactory(); boolean result = emitterFactory.accepts(ExtendedBulkProcessorObjectFactory.class); Assert.assertTrue(result); }