title: Write junit test cases with use of log messages without using mockito
body: <p>I have a spring boot application, I want to write a junit test cases for the void method, So I just want test whether the log contains the particular messages.
  Following is my business logic class:</p>
  
  <pre><code>public void processAdjustmentFeed(){
  
          ............
  
          if(!CollectionUtils.isEmpty(adjustmentList)){
              log.info("ADJUSTMENT FEED SIZE TO PUBLISH: {}", adjustmentList.size());
              // SOME BUSINESS LOGIC
          } else {
              log.warn("NO ADJUSTMENT FEED FOUND TO PROCESS FROM : {}", lastSuccessfulQueriedTimeStamp);
          }
      }
  </code></pre>
  
  <p>And in my test class:</p>
  
  <pre><code>@RunWith(SpringRunner.class)
  @SpringBootTest
  public class AdjustmentSchedulerTest {
  //
      @Autowired
      private AdjustmentScheduler adjustmentScheduler;
  
      @Autowired
      private AdjustmentRepository adjustmentRepository;
  
      @Autowired
      private AdjustmentService adjustmentService;
  
  
  
      @Test
      public void processAdjustmentFeed_ValidAdjustmentList() 
      {
  
          ....
  
          adjustmentScheduler.processAdjustmentFeed();
  
          //HERE I NEED TO CHECK FOR THE LOG MESSAGE
      }
  }
  </code></pre>
  
  <p>How can I do it without using mockito, because am using H2 database ,I want to have a test with actual method. Can anyone please provide me some code samples to do it.</p>