@Test
public void testWrap() {

    Node alreadyFacade = getFacade(mock(Node.class));
    assertSame("same if already facade", alreadyFacade, NodeFacade.wrap(alreadyFacade, sessionFacade));
    Node versionHistory = mock(VersionHistory.class);
    assertTrue("is VersionHistory", NodeFacade.wrap(versionHistory, sessionFacade) instanceof VersionHistoryFacade);
    Node version = mock(Version.class);
    assertTrue("is Version", NodeFacade.wrap(version, sessionFacade) instanceof VersionFacade);
    Node justNode = mock(Node.class);
    assertTrue("is Node", NodeFacade.wrap(justNode, sessionFacade) instanceof NodeFacade);
}