@Test
public void test_getGenericInterfaceTypeParameter() {

    class MyListClass extends ArrayList<String> implements List<String> { }
    assertThat(getGenericInterfaceTypeParameters(MyListClass.class, List.class)[0]).isEqualTo(String.class);
}