Snaipe you need to get the Constructor object from reflection, and do setAccessable(true). Putting test classes in the main package is unacceptable.