public void testShutdown() {
s.shutdown();
}
public void testRestore() {
RMStore store = control.createMock(RMStore.class);
EasyMock.expect(handler.getStore()).andReturn(store);
Configuration c = control.createMock(Configuration.class);
EasyMock.expect(handler.getConfiguration()).andReturn(c);
Configuration pc = control.createMock(Configuration.class);
EasyMock.expect(c.getParent()).andReturn(pc);
EasyMock.expect(pc.getId()).andReturn("endpoint");
Identifier id = RMUtils.getWSRMFactory().createIdentifier();
id.setValue("source1");
SourceSequence ss = new SourceSequence(id);
Collection<RMSourceSequence> sss = new ArrayList<RMSourceSequence>();
sss.add(ss);
EasyMock.expect(store.getSourceSequences("endpoint")).andReturn(sss);
EasyMock.expect(handler.getStore()).andReturn(store);
Collection<RMMessage> msgs = new ArrayList<RMMessage>();
EasyMock.expect(store.getMessages(id, true)).andReturn(msgs);
control.replay();
s.restore();
assertEquals(1, s.getAllSequences().size());
control.verify();
}