title: JUNIT Test for Service and DAO Layer
body: <p>I have layered architecture in the project like Controller -> Service -> DAO. I want to write the JUnit test cases for service layer. Now as service layer will be internally calling DAO methods, why should I write different test cases for DAO layer as it is internally tested.</p>
  
  <p>Some people say I need to mock DAO methods using mockito. Is it really required? Cant I directly use original code while testing service layer methods?</p>