@Test
public void testReadGenericAttributeType() throws Exception {

    //noinspection AssertEqualsBetweenInconvertibleTypes
    Assert.assertEquals(String.class, AbstractAttribute.readGenericAttributeType(ValidAttribute.class, "foo"));
    //noinspection AssertEqualsBetweenInconvertibleTypes
    Assert.assertEquals(List.class, AbstractAttribute.readGenericAttributeType(ValidAttributeWithParameterizedTypes.class, "foo"));
}