MarkdownFormatterTest: Make a few member variables local ones

Change-Id: I6d19570d4d94547713bc7fa0993cbffebb41a953
diff --git a/src/test/java/com/googlesource/gerrit/plugins/x-docs/MarkdownFormatterTest.java b/src/test/java/com/googlesource/gerrit/plugins/x-docs/MarkdownFormatterTest.java
index d2c62c5..f8167b3 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/x-docs/MarkdownFormatterTest.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/x-docs/MarkdownFormatterTest.java
@@ -29,14 +29,12 @@
   private static final String PROLOG = "<html><head><style type=\"text/css\">\n\n</style></head><body>\n<p>";
   private static final String EPILOG = "</p>\n</body></html>";
 
-  private FormatterUtil util;
   private ConfigSection cfg;
-  private Formatters formatters;
   private MarkdownFormatter formatter;
 
   @Before
   public void setUp() throws IOException {
-    util = createNiceMock(FormatterUtil.class);
+    FormatterUtil util = createNiceMock(FormatterUtil.class);
 
     // For easier result comparison, avoid the internal MarkdownFormatter to apply the default CSS.
     expect(util.getInheritedCss(anyString(), anyString(), anyString(), anyString())).andReturn("");
@@ -48,7 +46,7 @@
     // Do not expect any behavior from the ConfigSection itself.
     replay(cfg);
 
-    formatters = createNiceMock(Formatters.class);
+    Formatters formatters = createNiceMock(Formatters.class);
 
     // Avoid a NPE by just returning the ConfigSection mock object.
     expect(formatters.getFormatterConfig(anyString(), anyString())).andReturn(cfg);