DSLTextEditorServiceImpl extends KieService<DSLTextEditorContent> implements DSLTextEditorService { @Override public Path saveAndRename(final Path path, final String newFileName, final Metadata metadata, final String content, final String comment) { return saveAndRenameService.saveAndRename(path, newFileName, metadata, content, comment); } DSLTextEditorServiceImpl(); @Inject  DSLTextEditorServiceImpl( final SessionInfo sessionInfo ); @PostConstruct void init(); @Override Path create( final Path context,
                        final String fileName,
                        final String content,
                        final String comment ); @Override String load( final Path path ); @Override DSLTextEditorContent loadContent( final Path path ); @Override Path save( final Path resource,
                      final String 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 ); @Override boolean accepts( final Path path ); @Override List<ValidationMessage> validate( final Path path ); @Override List<ValidationMessage> validate( final Path path,
                                             final String content ); @Override Path saveAndRename(final Path path,
                              final String newFileName,
                              final Metadata metadata,
                              final String content,
                              final String comment);  }
@Test public void testSaveAndRename() throws Exception { final Path path = mock(Path.class); final String newFileName = "newFileName"; final Metadata metadata = mock(Metadata.class); final String content = "content"; final String comment = "comment"; service.saveAndRename(path, newFileName, metadata, content, comment); verify(saveAndRenameService).saveAndRename(path, newFileName, metadata, content, comment); }