@Test
public void testGetInheritedField() throws NoSuchFieldException {

    Assert.assertEquals("foo", ReflectiveAttribute.getField(Bar.class, "foo").getName());
    Assert.assertEquals("bar", ReflectiveAttribute.getField(Bar.class, "bar").getName());
    NoSuchFieldException expected = null;
    try {
        ReflectiveAttribute.getField(Bar.class, "baz");
    }
    catch (NoSuchFieldException nsfe) {
        expected = nsfe;
    }
    Assert.assertNotNull(expected);
}