AdaptrisMessageWorkerImp implements AdaptrisMessageWorker { @Override public boolean isTrackingEndpoint() { return BooleanUtils.toBooleanDefaultIfNull(getIsTrackingEndpoint(), false); } 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 testIsTrackingEndpoint() throws Exception { MockMessageProducer worker = new MockMessageProducer(); assertFalse(worker.isTrackingEndpoint()); worker.setIsTrackingEndpoint(Boolean.FALSE); assertEquals(Boolean.FALSE, worker.getIsTrackingEndpoint()); assertFalse(worker.isTrackingEndpoint()); worker.setIsTrackingEndpoint(Boolean.TRUE); assertTrue(worker.isTrackingEndpoint()); }