    @Test
    public void loadSnapshotTest() {


        try {

            SnapshotFileReader r = new SnapshotFileReader(snap1, TS1);
            DataState snapshot;

            DataState fuzzyDataState = r.readFuzzySnapshot();

            assertEquals(69,fuzzyDataState.getLastZxid());  

            Map<Long, Integer> sessions = fuzzyDataState.getSessions();

            assertEquals(2,sessions.size());
            assertEquals(71,fuzzyDataState.getNodeCount());

            logger.debug("Node count: " + fuzzyDataState.getNodeCount());

            logger.debug("Sessions count: " + sessions.size());

            Iterator it = sessions.entrySet().iterator();
            while (it.hasNext()) {
                Map.Entry pairs = (Map.Entry) it.next();
                logger.debug("Session name: " + pairs.getKey() + " Session timeout " + pairs.getValue());
            }

            
            StringBuilder sb = new StringBuilder();
            DataNodePrinter printer = new DataNodePrinter(sb, new UnicodeDecoder());
            
            Iterator<Map.Entry<String, DataNode>> it2 = fuzzyDataState.getNodes().entrySet().iterator();
            while (it2.hasNext()) {

                
                
                Entry<String,DataNode> entry = it2.next();
                /*
                long mzxid = entry.getValue().stat.getMzxid();
                long pzxid = entry.getValue().stat.getPzxid();
                long czxid = entry.getValue().stat.getCzxid();
                String path = entry.getKey();
                */
                sb.append("Path:\t\t").append(entry.getKey()).append(lineSeparator());
                printer.printDataNode(entry.getValue(),fuzzyDataState);
                sb.append(lineSeparator()).append(lineSeparator());
                
                //logger.debug("Path: "+path+" mzxid= "+mzxid+" pzxid= "+pzxid+" czxid= "+czxid);
                
            }
            
            logger.debug(sb);
            
        } catch (IOException e) {

            fail();
        }

    }