### Question:
SingleRepositoryServiceImpl implements SingleRepositoryService { @Override public Resource updateResource(Resource resource, boolean dryRun) throws ResourceNotFoundException, VersionNotMatchException { if(!dryRun) { try { if (resource instanceof Folder) { repositoryService.saveFolder(null, (Folder) resource); } else { repositoryService.saveResource(null, resource); } } catch (JSResourceVersionNotMatchException e) { throw new VersionNotMatchException(); } catch (JSExceptionWrapper w) { throw getRootException(w); } } return dryRun ? resource : getResource(resource.getURIString()); }  @Override Resource getResource(String uri); @Override FileResourceData getFileResourceData(String uri); @Override FileResourceData getFileResourceData(Resource resource); @Override void deleteResource(String uri); @Override Resource createResource(Resource serverResource, String parentUri, boolean createFolders, boolean dryRun); ClientResource saveOrUpdate(ClientResource clientResource, boolean overwrite, boolean createFolders,
            String clientType, boolean dryRun, Map<String, String[]> additionalProperties); @Override Resource updateResource(Resource resource, boolean dryRun); @Override String copyResource(String sourceUri, String destinationUri, boolean createFolders, boolean overwrite, String renameTo); @Override String moveResource(String sourceUri, String destinationUri, boolean createFolders, boolean overwrite,
            String renameTo); @Override Resource createFileResource(InputStream stream, String parentFolderUri, String name, String label,
            String description, String type, boolean createFolders, boolean dryRun); @Override Resource updateFileResource(InputStream stream, String parentUri, String name, String label, String description, String type, boolean dryRun); @Override String getUniqueName(String parenUri, String name);  }### Answer:
@Test(groups = "PUT") public void testUpdateResource() throws Exception{ service.updateResource(resource, false); verify(repositoryService).saveResource(nullable(ExecutionContext.class), eq(resource)); }
@Test(groups = "PUT") public void testUpdateResource_folder() throws Exception{ service.updateResource(folder, false); verify(repositoryService).saveFolder(nullable(ExecutionContext.class), eq(folder)); }