StandaloneProducer extends ServiceImp implements AdaptrisMessageSender, ConnectedService { @Override public String createName() { String name = getProducer().createName(); return isEmpty(name) ? super.createName() : name; } StandaloneProducer();  StandaloneProducer(AdaptrisMessageProducer p);  StandaloneProducer(AdaptrisConnection c, AdaptrisMessageProducer p); @Override void produce(AdaptrisMessage msg); @Override @SuppressWarnings("deprecation") void produce(AdaptrisMessage msg, ProduceDestination dest); @Override void start(); @Override void stop(); @Override void prepare(); @Override AdaptrisConnection getConnection(); AdaptrisMessageProducer getProducer(); @Override void setConnection(AdaptrisConnection conn); void setProducer(AdaptrisMessageProducer prod); @Override void doService(AdaptrisMessage msg); @Override String createName(); @Override String createQualifier();  }
@Test public void testCreateName() throws Exception { StandaloneProducer service = new StandaloneProducer(new MockMessageProducer()); assertEquals(MockMessageProducer.class.getName(), service.createName()); assertEquals(service.getProducer().createName(), service.createName()); }