AdaptrisMessageWorkerImp implements AdaptrisMessageWorker { @Override public void setEncoder(AdaptrisMessageEncoder enc) { encoder = enc; registerEncoderMessageFactory(); } AdaptrisMessageWorkerImp(); @Override void handleConnectionException(); @Override String createName(); @Override String createQualifier(); @Override byte[] encode(AdaptrisMessage msg); @Override AdaptrisMessage decode(byte[] bytes); @Override AdaptrisMessageEncoder getEncoder(); @Override void setEncoder(AdaptrisMessageEncoder enc); @Override T retrieveConnection(Class<T> type); @Override void registerConnection(AdaptrisConnection conn); @Override String getUniqueId(); void setUniqueId(String s); Boolean getIsTrackingEndpoint(); @Override boolean isTrackingEndpoint(); void setIsTrackingEndpoint(Boolean b); @Override AdaptrisMessageFactory getMessageFactory(); @Override void setMessageFactory(AdaptrisMessageFactory f); T withMessageFactory(AdaptrisMessageFactory f); T withUniqueID(String uid);  }
@Test public void testToString() throws Exception { MockMessageProducer worker = new MockMessageProducer(); worker.setEncoder(new MimeEncoder()); assertNotNull(worker.toString()); worker.setEncoder(null); assertNotNull(worker.toString()); }