*/
public void testLikeTypeConstruction() throws Exception
{
ObjectMapper mapper = new ObjectMapper();
mapper.setTypeFactory(mapper.getTypeFactory().withModifier(new MyTypeModifier()));
JavaType type = mapper.constructType(MyMapLikeType.class);
assertTrue(type.isMapLikeType());
// also, must have resolved type info
JavaType param = ((MapLikeType) type).getKeyType();
assertNotNull(param);
assertSame(String.class, param.getRawClass());
param = ((MapLikeType) type).getContentType();
assertNotNull(param);
assertSame(Integer.class, param.getRawClass());
type = mapper.constructType(MyCollectionLikeType.class);
assertTrue(type.isCollectionLikeType());
param = ((CollectionLikeType) type).getContentType();
assertNotNull(param);
assertSame(Integer.class, param.getRawClass());
}