StandardOpenOption.WRITE,
StandardOpenOption.CREATE);
RootJid rj = new RootJid();
rj.initialize(mailbox, factory);
Block block = new LBlock();
block.setRootJid(rj);
(new ForcedWriteRootJid(block)).send(future, jFile);
assertEquals(4L, block.getCurrentPosition());
Block block2 = new LBlock();
(new ReadRootJid(block2)).send(future, jFile);
RootJid rj2 = block2.getRootJid(mailbox, factory);
assertNotNull(rj2);
(new ReadRootJid(block2)).send(future, jFile);
rj2 = block2.getRootJid(mailbox, factory);
assertNull(rj2);
jFile.fileChannel.close();
mailboxFactory.close();
}