source: class OffHeapStateChunkTest  {
  
      @Test
      public void loadTest() {
  
target:         Graph g = GraphBuilder.newBuilder().withPlugin(new Plugin() {
              @Override
              public void start(Graph graph) {
                  graph.setMemoryFactory(factory);
              }
  
              @Override
              public void stop() {
  
              }
          }).withScheduler(new NoopScheduler()).build();
          g.connect(null);
  
          ChunkSpace space = g.space();
  
          StateChunk chunk = (StateChunk) space.createAndMark(ChunkType.STATE_CHUNK, 0, 0, 42);
          Buffer buffer = factory.newBuffer();
          buffer.writeAll("K|I|iYxfq|C|M|CJHb/f|E:wFGg:wGGg|M|CJHcG7|E:QFGg:QGGg|i|Cbi4/v|i$M%G%A%BQ%G%E%g%G%C%C%M%G%E:wFGg:wGGg%M%I%E:QFGg:QGGg%k%m%C$K%G%C%C%M%G%E:AAA:AAA%M%I%E:QFGg:QGGg%G%A%BQ%k%k%E$K%G%C%C%M%G%E:QEGg:AAA%M%I%E:QFGg:QFGg%G%A%BQ%k%g%G$K%G%C%C%M%G%E:QEGg:AAA%M%I%E:QFA4:QEGg%G%A%BQ%k%g%I$K%G%C%C%M%G%E:QEGg:AAA%M%I%E:QEMI:QDGg%G%A%BQ%k%g%K$K%G%C%C%M%G%E:QEGg:AAA%M%I%E:QEJU:QCGg%G%A%BQ%k%i%M$K%G%C%C%M%G%E:QEGg:QBGg%M%I%E:QEH6:QCGg%G%A%BQ%k%k%O$K%G%C%C%M%G%E:QEHN:QBGg%M%I%E:QEH6:QCA4%G%A%BQ%k%m%Q$K%G%C%C%M%G%E:QEHjg:QBMI%M%I%E:QEH6:QCA4%G%A%BQ%k%k%S$K%G%C%C%M%G%E:QEHuw:QBMI%M%I%E:QEH6:QBO8%G%A%BQ%k%k%U$K%G%C%C%M%G%E:QEH0Y:QBMI%M%I%E:QEH6:QBNi%G%A%BQ%k%m%W$K%G%C%C%M%G%E:QEH3M:QBM1%M%I%E:QEH6:QBNi%G%A%BQ%k%i%Y$Q%G%C%I%M%G%E:QEH3M:QBNLg%M%I%E:QEH4m:QB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QEH4UMu4PPk:QBNVDyA23c1%g%M%W:C:Q:Q:EAAAEu8:EAAAEvK:EAAAEvY:EAAAEwe:EAAAEw6:EAAAExI:EAAAEzi:EAAAE1g$M%G%C%A%M%G%E:QEH3M:QBNLg%M%I%E:QEH35:QBNWw%G%A%e%e%K%BG:QAA:QDA:QCO:QEH31saLaq0:QBNT62CJUxn:QEH30F/0Ns3:QBNV8i6dLvb:QEH3z5zNFL:QBNVX1/kik6:QEH3p1hMtP4:QBNVIJTCZSj:QEH3wbdadMC:QBNU4o7V8Tj:QEH3izljA+j:QBNVEXye1Dw:QEH3sszmEWi:QBNR/1H+KMJ:QEH3yMfamID:QBNS7WbJU62:QEH3dnXWjDT:QBNQc7d69CM:QEH3oFOaeGL:QBNRQW33in/:QEH3jLxABa6:QBNRpyEd9us:QEH3yRVax9B:QBNQxD2gQie:QEH32WIbFYS:QBNRiGNdgFZ:QEH3zwpt3xL:QBNPwgkA3HI:QEH340ETjDa:QBNO9XAwETo:AAA:AAA%g%M%m:C:g:e:EAAAEvm:EAAAEv0:EAAAExy:EAAAEyO:EAAAEyc:EAAAEyq:EAAAEzG:EAAAEzU:EAAAE0o:EAAAE02:EAAAE1E:EAAAE1u:EAAAE18:EAAAE2K:EAAAE2Y:A|I|DVH0bm|A".getBytes());
          chunk.load(buffer);
          space.free(chunk);
          buffer.free();
  
          g.disconnect(null);
          
      }
  
  }