Goldman Sachs interview question

How to test the class members

Interview Answer

Anonymous

18 Jan 2011

to test private class members, You need to use the Reflection API. Use Class.getField() to get the field,