### Question:
LikeScriptService implements ScriptService { public void cleanCacheUIX() { DocumentReference localUIXReference = new DocumentReference(UIX_REFERENCE, contextProvider.get().getWikiReference()); this.asyncRendererCache.cleanCache(localUIXReference); }  boolean isAuthorized(EntityReference entityReference); boolean displayButton(EntityReference entityReference); Optional<Long> like(EntityReference entityReference); Optional<Long> unlike(EntityReference entityReference); Optional<Long> getLikes(EntityReference entityReference); List<EntityReference> getUserLikes(UserReference userReference, int offset, int limit); boolean isLiked(EntityReference entityReference); @Unstable List<UserReference> getLikers(EntityReference target, int offset, int limit); void cleanCacheUIX();  }### Answer:
@Test void cleanCache() { when(this.xWikiContext.getWikiReference()).thenReturn(new WikiReference("foo")); this.likeScriptService.cleanCacheUIX(); DocumentReference uixReference = new DocumentReference("foo", Arrays.asList("XWiki", "Like"), "LikeUIX", Locale.ROOT); verify(this.asyncRendererCache).cleanCache(uixReference); }