VFSServicesServerImpl implements VFSService { @Override public Path move(final Path source, final Path target) throws UnsupportedOperationException, FileAlreadyExistsException, DirectoryNotEmptyException, AtomicMoveNotSupportedException, IOException { return Paths.convert(ioService.move(Paths.convert(source), Paths.convert(target))); } protected  VFSServicesServerImpl(); @Inject  VFSServicesServerImpl(final @Named("ioStrategy") IOService ioService); @Override Path get(final String uri); @Override DirectoryStream<Path> newDirectoryStream(final Path dir); @Override DirectoryStream<Path> newDirectoryStream(final Path dir,
                                                    final DirectoryStream.Filter<Path> filter); @Override Path createDirectory(final Path dir); @Override Path createDirectories(final Path dir); @Override Path createDirectory(final Path dir,
                                final Map<String, ?> attrs); @Override Path createDirectories(final Path dir,
                                  final Map<String, ?> attrs); @Override Map<String, Object> readAttributes(final Path path); @Override void setAttributes(final Path path,
                              final Map<String, Object> attrs); @Override void delete(final Path path); @Override boolean deleteIfExists(final Path path); @Override Path copy(final Path source,
                     final Path target); @Override Path move(final Path source,
                     final Path target); @Override String readAllString(final Path path); @Override Path write(final Path path,
                      final String content); @Override Path write(final Path path,
                      final String content,
                      final Map<String, ?> attrs); @Override boolean isRegularFile(final String uri); @Override boolean isRegularFile(final Path path); @Override boolean isDirectory(final String uri); @Override boolean isDirectory(final Path path);  }
@Test public void testMove() { tested.move(ROOT_PATH, ROOT_PATH); verify(ioService, times(1)) .move(any(org.uberfire.java.nio.file.Path.class), any(org.uberfire.java.nio.file.Path.class)); }