@Test
public void testReadGenericObjectType() throws Exception {

    //noinspection AssertEqualsBetweenInconvertibleTypes
    Assert.assertEquals(Integer.class, AbstractAttribute.readGenericObjectType(ValidAttribute.class, "foo"));
    //noinspection AssertEqualsBetweenInconvertibleTypes
    Assert.assertEquals(Set.class, AbstractAttribute.readGenericObjectType(ValidAttributeWithParameterizedTypes.class, "foo"));
}