title: How do I invoke a private static method using reflection (Java)?
body: <p>I would like to invoke a private static method. I have its name. I've heard it can be done using Java reflection mechanism. How can I do it?</p>
  
  <p><strong>EDIT:</strong> One problem I encountered when trying to invoke the method is how to specify the type of its argument. My method receives one argument and its type is Map. Therefore I cannot do <code>Map&lt;User, String&gt;.TYPE</code> (In run time there's no such a thing as Map because of Java Type erasure). Is there another way to get the method?</p>