}
@Test
public void testReceiveModifyMessageFromFedora() throws JMSException,
InterruptedException {
FedoraAtomMessage atom;
producer.send(util.getModifyObjectPlainMessage());
// wait enough time for the message to come
Thread.sleep(1000);
atom = atomListener.getAtomMessage();
Assert.assertEquals(Method.MODIFY_OBJECT, atom.getMethodName());
producer.send(util.getModifyDatastreamPlainMessage());
// wait enough time for the message to come
Thread.sleep(1000);
atom = atomListener.getAtomMessage();
Assert.assertEquals(Method.MODIFY_DATASTREAM, atom.getMethodName());
}