@Test
void equalsToBuiltInType() throws NoSuchFieldException {

    Type builtInType = TypesTest.class.getDeclaredField("list").getGenericType();
    Type constructedType = Types.generic(List.class, String.class);
    assertThat(constructedType).isEqualTo(builtInType)
                               .hasSameHashCodeAs(builtInType);
    assertThat(builtInType).isEqualTo(constructedType)
                           .hasSameHashCodeAs(constructedType);
}