title: java.lang.AssertionError: Response content expected:<TestVersion> but was:<>
body: <pre><code>@RunWith(MockitoJUnitRunner.class)
  public class VersionResourceImplTest {
  
      @Configuration
      public static class MockConfig {
          @Bean
          public Properties myProp() {
              Properties properties = new Properties();
              properties.setProperty("ra.bank.app.version", "TestVersion");
              return properties;
          }
      }
  
      @Value("#{myProp['ra.bank.app.version']}")
      private String applicationVersion;
  
      @Test
      public void testVersion() {
          Assert.assertEquals("TestVersion", applicationVersion);
      }
  
  }
  </code></pre>
  
  <p>This is my test file. It is giving the following error</p>
  
  <pre><code>java.lang.AssertionError: Response content expected:&lt;TestVersion&gt; but was:&lt;&gt;
      at org.springframework.test.util.AssertionErrors.fail(AssertionErrors.java:54)
      at org.springframework.test.util.AssertionErrors.assertEquals(AssertionErrors.java:81)
      at org.springframework.test.web.servlet.result.ContentResultMatchers$5.match(ContentResultMatchers.java:149)
      at org.springframework.test.web.servlet.MockMvc$1.andExpect(MockMvc.java:171)
      at com.db.creditrisk.rating.analysis.bank.ui.facade.v2.common.ws.VersionResourceImplTest.shouldReturnCorrectVersion(VersionResourceImplTest.java:49)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  </code></pre>