MessageReceiverImpl extends MessageBaseFacility implements MessageReceiver { @Override public FutureTask<Serializable> receiveSerializable(final String destinationId, final DestinationType type) { return new FutureTask<Serializable>(new Callable<Serializable>() { @Override public Serializable call() throws JMSException { return getSerializable(destinationId, type); } }); }  @Activate void activate(BundleContext bc); @Deactivate void deactivate(); @Override FutureTask<Serializable> receiveSerializable(final String destinationId, final DestinationType type);  }
@Test public void testGetter() throws Exception { MessageReceiverImpl messageReceiverImpl = new MessageReceiverImpl(); assertNotNull(messageReceiverImpl.receiveSerializable("", DestinationType.Queue)); assertNull(messageReceiverImpl.getSession()); assertNull(messageReceiverImpl.getMessageProducer()); }