title: mockito test void Method, override member variable
body: <p>I'm new to unit-testing and mockito but i need to test this class:</p>
  
  <pre><code>public class XMLHandler {
      private static final String CONFIG_FILE = "path/to/xml";
      private XMLConfiguration config = null;
  
      public XMLHandler() {
          try {
              config = new XMLConfiguration(CONFIG_FILE);
              config.setValidating(true);
          } catch (ConfigurationException e) {
              LOGGER.log(Level.SEVERE, e );
          }
      }
  
      public List&lt;ConfigENtries&gt; getEntries() {     
          // do some stuff
          return list;
      }
  
      @Override
      public void removeEntry(int index) {
          // remove entry
      }
  }
  </code></pre>
  
  <p>I think i have to override the config variable with a mockup but i don't have a setter, so how would i do this?
  And what about removeEntry? How to test a void method?</p>
  
  <p>I hope someone can help me with this</p>