{
JavaType t;
TypeFactory tf = TypeFactory.defaultInstance();
t = tf.constructType(new TypeReference<MyLongList<Integer>>() {});
CollectionType type = (CollectionType) t;
assertSame(MyLongList.class, type.getRawClass());
assertEquals(tf.constructType(Long.class), type.getContentType());
t = tf.constructType(LongList.class);
type = (CollectionType) t;
assertSame(LongList.class, type.getRawClass());
assertEquals(tf.constructType(Long.class), type.getContentType());
}