@SuppressWarnings("ConstantConditions")
@Test
public void testUnwrap() {

    assertNull("unwrap null to null", NodeFacade.unwrap(null));
    Node justNodeDelegate = mock(Node.class);
    assertSame("same Node delegate", justNodeDelegate, NodeFacade.unwrap(justNodeDelegate));
    Node justNodeFacade = getFacade(justNodeDelegate);
    assertSame("same Node delegate", justNodeDelegate, NodeFacade.unwrap(justNodeFacade));
    Node versionDelegate = mock(Version.class);
    Node versionFacade = getFacade(versionDelegate);
    assertSame("same Version delegate", versionDelegate, NodeFacade.unwrap(versionFacade));
    Node versionHistoryDelegate = mock(VersionHistory.class);
    Node versionHistoryFacade = getFacade(versionHistoryDelegate);
    assertSame("same Version delegate", versionHistoryDelegate, NodeFacade.unwrap(versionHistoryFacade));
}