How to test a class that has private methods, fields or inner classes

How to do Unit tests on MVC validation