Assert.assertThat((String)ReflectUtils.get(foo, "name"), is("foo hello"));
}
@Test
public void testArray() throws Throwable {
ArrayProxyFactoryUsingJavaCompiler arrayProxyFactory = ArrayProxyFactoryUsingJavaCompiler.INSTANCE;
int[] intArr = new int[5];
Integer[] intArr2 = new Integer[10];
ArrayProxy intArrProxy = arrayProxyFactory.getArrayProxy(intArr.getClass());
ArrayProxy intArr2Proxy = arrayProxyFactory.getArrayProxy(intArr2.getClass());
Assert.assertThat(ReflectUtils.arraySize(intArr), is(5));
Assert.assertThat(ReflectUtils.arraySize(intArr2), is(10));
Assert.assertThat(intArrProxy.size(intArr), is(5));