@Test
public void testGetDeclaredField() throws Exception {

	Field staticField = ReflectionUtil.getDeclaredField(
		TestClass.class, "_privateStaticFinalObject");
	Assert.assertTrue(staticField.isAccessible());
	Assert.assertFalse(Modifier.isFinal(staticField.getModifiers()));
	Assert.assertSame(
		TestClass._privateStaticFinalObject, staticField.get(null));
	Object object = new Object();
	staticField.set(null, object);
	Assert.assertSame(object, TestClass._privateStaticFinalObject);
	TestClass testClass = new TestClass();
	Field field = ReflectionUtil.getDeclaredField(
		TestClass.class, "_privateFinalObject");
	Assert.assertTrue(field.isAccessible());
	Assert.assertTrue(Modifier.isFinal(field.getModifiers()));
	Assert.assertSame(testClass._privateFinalObject, field.get(testClass));
	field.set(testClass, object);
	Assert.assertSame(object, testClass._privateFinalObject);
}