Type type = creator.createType(m, -1);
tm.register(type);
assertTrue( type instanceof MapType );
MapType mapType = (MapType) type;
QName keyName = mapType.getKeyName();
type = mapType.getKeyType();
assertNotNull(type);
assertTrue(type instanceof CollectionType);
assertEquals(String.class, ((CollectionType) type).getComponentType().getTypeClass());
type = mapType.getValueType();
assertNotNull(type);
assertTrue(type instanceof CollectionType);
assertEquals(Double.class, ((CollectionType) type).getComponentType().getTypeClass());
}