title: ReflectionTestUtils.setfield is not overriding the local project property attribute
body: <p>I am struggling with how to override a property file inside a .yml file</p>
  
  <p>We use the Spring framework and use annotations (eg. @InjectMocks).</p>
  
  <p>I have a an attribute declared in a configuration project YML file called "one-platform-properties" called paysafe-ss-fx-service.yml.  It sets a variable called <code>maxRecoveryAge=0</code>.  It is essentially a time to live buffer.</p>
  
  <pre><code>  oneplatform:
    environment: local
  publisher:
    rates:
      maxRecoveryAge: 0
      interPublishDelay: 500
  </code></pre>
  
  <p>The problem is that I want to be able to adjust this at run time in my tests.  Make the buffer to 1 hour, 5 hours and 24 hours.</p>
  
  <p>I am using the <code>ReflectionTestUtils.setfield(PublisherClass, "maxDocumentAge", 1, int.class)</code> call in my tests to adjust the timing, but the value is not being overridden.  When I do a watch on the variable it is working in my test harness, but once the test run penetrates into the micro service code, the overridden value is lost.  Any ideas on how to have the overridden value persist throughout all the tests?</p>
  
  <p>My goal is to use different variations on my test run:</p>
  
  <pre><code>ReflectionTestUtils.setField(new FxRatesEventPublisher(),"maxRecoveryAge",1,int.class);
  ReflectionTestUtils.setField(new FxRatesEventPublisher(),"maxRecoveryAge",5,int.class);
  ReflectionTestUtils.setField(new FxRatesEventPublisher(),"maxRecoveryAge",24,int.class);
  </code></pre>
  
  <p>and essentially override the value as defined in the project defined properties file.</p>