ByteArrayInputStream byteIn = new ByteArrayInputStream(byteOut.toByteArray());
ObjectInputStream in = new ObjectInputStream(byteIn);
TreeStructureNode nodeIn = (TreeStructureNode) in.readObject();
assertEquals(2, nodeIn.getChildren().size());
assertEquals(1, nodeIn.getFacets().size());
FacetEntry nodeA = nodeIn.getFacets().get(0);
assertNotNull(nodeA);
assertEquals(FACET_A, nodeA.getName());
assertEquals(1, nodeA.getNode().getChildren().size());
assertEquals(1, nodeA.getNode().getFacets().size());
}