@Test
public void testInvokePrivateMethod() throws Exception
{
try
{
ClassWithPrivateMethod instance = new ClassWithPrivateMethod();
Object invokeVoidMethod = ReflectHelper.invokeMethod(instance, "method", String.class);
Assert.assertEquals(invokeVoidMethod, "hello");
}
catch (ApplicationRuntimeException e)
{