diff --git a/xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-macros/xwiki-platform-rendering-macro-gallery/src/test/java/org/xwiki/rendering/block/ExpandedMacroBlockTest.java b/xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-macros/xwiki-platform-rendering-macro-gallery/src/test/java/org/xwiki/rendering/block/ExpandedMacroBlockTest.java
index b7f9d4a35b12cfed54c2a173e0580aea44a48925..7ffdd2e0903b236dbf8a2df8e34ad4db55fe1474 100644
--- a/xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-macros/xwiki-platform-rendering-macro-gallery/src/test/java/org/xwiki/rendering/block/ExpandedMacroBlockTest.java
+++ b/xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-macros/xwiki-platform-rendering-macro-gallery/src/test/java/org/xwiki/rendering/block/ExpandedMacroBlockTest.java
@@ -62,7 +62,7 @@ public void constructorCallsSuper()
     public void getContentWrapsChildNodesInXDOM()
     {
         ExpandedMacroBlock expandedMacroBlock =
-            new ExpandedMacroBlock("gallery", Collections.emptyMap(), this.contentRenderer, false);
+            new ExpandedMacroBlock("gallery", Collections.<String, String>emptyMap(), this.contentRenderer, false);
 
         expandedMacroBlock.getContent();
 
@@ -75,9 +75,9 @@ public void getContentWrapsChildNodesInXDOM()
     @Test
     public void getContentUsesChildXDOM()
     {
-        XDOM content = new XDOM(Collections.emptyList());
+        XDOM content = new XDOM(Collections.<Block>emptyList());
         ExpandedMacroBlock expandedMacroBlock =
-            new ExpandedMacroBlock("gallery", Collections.emptyMap(), this.contentRenderer, false);
+            new ExpandedMacroBlock("gallery", Collections.<String, String>emptyMap(), this.contentRenderer, false);
         expandedMacroBlock.addChild(content);
 
         expandedMacroBlock.getContent();
@@ -88,8 +88,8 @@ public void getContentUsesChildXDOM()
     @Test
     public void getContentUsesAnotherBlockRenderer() throws Exception
     {
-        ExpandedMacroBlock expandedMacroBlock = new ExpandedMacroBlock("gallery", Collections.emptyMap(),
-            this.contentRenderer, false, this.componentManager);
+        ExpandedMacroBlock expandedMacroBlock = new ExpandedMacroBlock("gallery",
+            Collections.<String, String>emptyMap(), this.contentRenderer, false, this.componentManager);
         XDOM parent = new XDOM(Collections.singletonList(expandedMacroBlock));
         parent.getMetaData().addMetaData(MetaData.SYNTAX, Syntax.MARKDOWN_1_1);