title: mocking @value annotation of int data type
body: <pre><code>@Component
  public class MyHelper {     
      @Value("${max.retry.count:3}")
      private int maxRetryCount;
  
      @Value("${max.query.count:1000}")
      private int maxQueryCount;
  }
  </code></pre>
  
  <p>I am reading the value of a variable from a properties file using @value annotation.
  When writing a junit using EasyMock, I'm getting an exception as </p>
  
  <pre><code>"nested exception is org.springframework.beans.TypeMismatchException: Failed to convert value of type [java.lang.String] to required type [int]; 
   nested exception is java.lang.NumberFormatException: For input string: "${max.retry.count:3}".
  </code></pre>
  
  <p>If the data type is changed to String, then it's working fine.
  Someone help me on how to mock this.</p>