public void testDump() throws Exception {
final byte[] dump = controller.dump(false);
final ByteArrayInputStream input = new ByteArrayInputStream(dump);
final ExecutionDataReader reader = new ExecutionDataReader(input);
final ExecutionDataStore execStore = new ExecutionDataStore();
reader.setExecutionDataVisitor(execStore);
final SessionInfoStore infoStore = new SessionInfoStore();
reader.setSessionInfoVisitor(infoStore);
reader.read();
assertEquals("Foo", execStore.get(0x12345678).getName());
final List<SessionInfo> infos = infoStore.getInfos();
assertEquals(1, infos.size());
assertEquals("stubid", infos.get(0).getId());