import org.mule.weave.v2.pojo.Animal
import org.mule.weave.v2.pojo.MapOfPojo

def map = new HashMap<String, Animal>()
map.put("cat", new Animal("Tom"))
map.put("mouse", new Animal("Jerry"))
new MapOfPojo(map)