VersionFacade extends NodeFacade<Version, S> implements Version { @Override public Version[] getSuccessors() throws RepositoryException { return wrapVersions(delegate.getSuccessors()); } VersionFacade(final @NotNull Version delegate, final @NotNull SessionFacade<S> session); @Override VersionHistory getContainingHistory(); @Override Calendar getCreated(); @Override Version getLinearSuccessor(); @Override Version getLinearPredecessor(); @Override Version[] getSuccessors(); @Override Version[] getPredecessors(); @Override Node getFrozenNode();  }
@Test public void testGetSuccessorsNull() throws Exception { Version delegate = mock(Version.class); VersionFacade<Session> facade = getFacade(delegate); assertNull("should be null", facade.getSuccessors()); }