void verifyStorePopulation() {
RMManager manager = bus.getExtension(RMManager.class);
assertNotNull(manager);
RMStore store = manager.getStore();
assertNotNull(store);
Client client = ClientProxy.getClient(greeter);
String id = RMUtils.getEndpointIdentifier(client.getEndpoint());
Collection<DestinationSequence> dss =
store.getDestinationSequences(id);
assertEquals(1, dss.size());
Collection<SourceSequence> sss =
store.getSourceSequences(id);
assertEquals(1, sss.size());
Collection<RMMessage> msgs =
store.getMessages(sss.iterator().next().getIdentifier(), true);
assertEquals(2, msgs.size());
msgs =
store.getMessages(sss.iterator().next().getIdentifier(), false);
assertEquals(0, msgs.size());
}