### Question:
ProjectDiagramResourceServiceImpl implements ProjectDiagramResourceService { @Override public Path saveAndRename(final Path path, final String newFileName, final Metadata metadata, final ProjectDiagramResource resource, final String comment) { return saveAndRenameService.saveAndRename(path, newFileName, metadata, resource, comment); } ProjectDiagramResourceServiceImpl(); @Inject  ProjectDiagramResourceServiceImpl(final ProjectDiagramService projectDiagramService,
                                             final RenameService renameService,
                                             final SaveAndRenameServiceImpl<ProjectDiagramResource, Metadata> saveAndRenameService); @PostConstruct void init(); @Override Path save(final Path path,
                     final ProjectDiagramResource resource,
                     final Metadata metadata,
                     final String comment); @Override Path rename(final Path path,
                       final String newName,
                       final String comment); @Override Path saveAndRename(final Path path,
                              final String newFileName,
                              final Metadata metadata,
                              final ProjectDiagramResource resource,
                              final String comment);  }### Answer:
@Test public void testSaveAndRename() { final Path path = mock(Path.class); final Metadata metadata = mock(Metadata.class); final ProjectDiagramResourceImpl resource = mock(ProjectDiagramResourceImpl.class); final String newName = "newName"; final String comment = "comment"; service.saveAndRename(path, newName, metadata, resource, comment); verify(saveAndRenameService).saveAndRename(path, newName, metadata, resource, comment); }