title: Java: newInstance of class that has no default constructor
body: <p>I'm trying to build an automatic testing framework (based on jUnit, but that's no important) for my students' homework. They will have to create constructors for some classes and also add some methods to them. Later, with the testing functions I provide, they will check if they went alright. </p>
  
  <p>What I want to do is, <strong>by reflection</strong>, create a new instance of some class I want to test. The problem is that, sometimes, <strong>there is no default constructor</strong>. I don't care about that, <strong>I want to create an instance and initialize the instance variables myself</strong>. Is there any way of doing this?
  I'm sorry if this has been asked before, but just I couldn't find any answer.</p>
  
  <p>Thanks in advance.</p>