### Question:
VersionFacade extends NodeFacade<Version, S> implements Version { @Override public Calendar getCreated() throws RepositoryException { return delegate.getCreated(); } 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();  }### Answer:
@Test public void testGetCreated() throws Exception { Version delegate = mock(Version.class); VersionFacade<Session> facade = getFacade(delegate); final Calendar value = Calendar.getInstance(); when(delegate.getCreated()).thenReturn(value); assertSame("is same", value, facade.getCreated()); }