MediaHandler (the class) is not static, the instance of MediaHandler in the MainTest class is static. So if you intend on creating multiple instances of MainTest, yes it would be a problem, otherwise...