BpmnServiceImpl implements BpmnService { @Override public Path saveAndRename(final Path path, final String newFileName, final Metadata metadata, final ProcessNode content, final String comment) { return saveAndRenameService.saveAndRename(path, newFileName, metadata, content, comment); }  @Override Path create(final Path context,
                       final String fileName,
                       final ProcessNode content,
                       final String comment); @Override BpmnEditorContent loadContent(final Path path); @Override ProcessNode load(final Path path); @Override Path save(final Path path,
                     final ProcessNode content,
                     final Metadata metadata,
                     final String comment); @Override void delete(final Path path,
                       final String comment); @Override Path rename(final Path path,
                       final String newName,
                       final String comment); @Override Path copy(final Path path,
                     final String newName,
                     final String comment); @Override Path copy(final Path path,
                     final String newName,
                     final Path targetDirectory,
                     final String comment); @PostConstruct void setup(); @Override List<Path> listFiles(); @Override Path saveAndRename(final Path path,
                              final String newFileName,
                              final Metadata metadata,
                              final ProcessNode content,
                              final String comment);  }
@Test public void testSaveAndRename() { final String newFileName = "newFileName"; final String comment = "comment"; final Path path = mock(Path.class); final Metadata metadata = mock(Metadata.class); final ProcessNode content = mock(ProcessNode.class); bpmnService.saveAndRename(path, newFileName, metadata, content, comment); verify(saveAndRenameService).saveAndRename(path, newFileName, metadata, content, comment); }