title: Updating a Mock object in Java
body: <p>I am trying to mock an object using Mockito Library for Java. After mocking the object i am updating some values for that mocked object.   </p>
  
  <pre><code>Message m = mock(Message.class);
  m.put("org.apache.cxf.http.case_insensitive_queries", false);
  m.put("org.apache.cxf.endpoint.private", false);
  m.put(Message.REQUEST_URI, pathInfo);
  m.put(Message.HTTP_REQUEST_METHOD, method);
  </code></pre>
  
  <p>However, on debugging the code, i am not able to see the values which i set in the message object. </p>
  
  <p>Attaching screenshot how the message object looks like<img src="https://i.stack.imgur.com/mvZqT.png" alt="enter image description here"></p>