### Question:
JcrWorkspace implements Workspace { public void copy( String srcAbsPath, String destAbsPath ) throws ConstraintViolationException, VersionException, AccessDeniedException, PathNotFoundException, ItemExistsException, LockException, RepositoryException { this.copy(this.name, srcAbsPath, destAbsPath); } 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( expected = IllegalArgumentException.class ) public void shouldNotAllowCopyFromNullPathToNullPath() throws Exception { workspace.copy(null, null); }
@Ignore( "QueryManager is not initialized correctly, preventing the 'copy' to work properly" ) @Test public void shouldCopyFromPathToAnotherPathInSameWorkspace() throws Exception { workspace.copy("/a/b", "/b/b-copy"); }
@Test( expected = IllegalArgumentException.class ) public void shouldNotAllowCopyFromOtherWorkspaceWithNullWorkspace() throws Exception { workspace.copy(null, null, null); }