Java, Unit Testing, Tdd, Programming, Technology.
Test using reflection import java.lang.reflect.Method; public class ComplexClassTest { public static void main(String[] args) { ComplexClass complexClass = new ComplexClass(); try { Method method = ComplexClass.class.getDeclaredMethod("processData", String.class); method.setAccessible(true); String