title: Mocking configuration interfaces as a practice?
body: <p>I am writing a test case where I need to test an object, but that object requires a lot of configuration to work correctly.</p>
  
  <p>Now I have <em>5 or 6</em> interfaces with many methods out of which only a few will be relevant for testing that object.</p>
  
  <p>So the question is basically is it a proper use of Mocking framework to mock configuration related interfaces or I should implement interfaces in the test case to provide data?</p>
  
  <pre><code>Mockito.mock(IConfiguration.class); //is this a proper use?
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>I have read at some places which comment on not using mocks for mocking simple objects. In my case the objects are simple but the interface is fat. So there are plenty of methods. </p>