@Test
public void checkRename() {

    final Path path = mock(Path.class);
    final String newFileName = "newFileName";
    final String comment = "comment";
    service.rename(path,
                   newFileName,
                   comment);
    verify(renameService,
           times(1)).rename(eq(path),
                            eq(newFileName),
                            eq(comment));
}