### Question:
JcrWorkspace implements Workspace { final ExecutionContext context() { return this.context; } JcrWorkspace( JcrRepository repository,
                  String workspaceName,
                  ExecutionContext context,
                  Map<String, Object> sessionAttributes ); final String getName(); final Session getSession(); final javax.jcr.NamespaceRegistry getNamespaceRegistry(); String[] getAccessibleWorkspaceNames(); final NodeTypeManager getNodeTypeManager(); final ObservationManager getObservationManager(); LockManager getLockManager(); final QueryManager getQueryManager(); void clone( String srcWorkspace,
                       String srcAbsPath,
                       String destAbsPath,
                       boolean removeExisting ); void copy( String srcAbsPath,
                      String destAbsPath ); void copy( String srcWorkspace,
                      String srcAbsPath,
                      String destAbsPath ); ContentHandler getImportContentHandler( String parentAbsPath,
                                                   int uuidBehavior ); void importXML( String parentAbsPath,
                           InputStream in,
                           int uuidBehavior ); void move( String srcAbsPath,
                      String destAbsPath ); void restore( Version[] versions,
                         boolean removeExisting ); @Override void createWorkspace( String name,
                                 String srcWorkspace ); @Override void createWorkspace( String name ); @Override void deleteWorkspace( String name ); @Override VersionManager getVersionManager();  }### Answer:
@Test public void shouldHaveSameContextIdAsSession() { assertThat(workspace.context().getId(), is(session.getExecutionContext().getId())); }