public void testMapRemoveMapTypeTrigger() {
loadApi(new Runnable() {
public void run() {
final MapWidget m = new MapWidget();
m.addMapRemoveMapTypeHandler(new MapRemoveMapTypeHandler() {
public void onRemoveMapType(MapRemoveMapTypeEvent event) {
assertEquals(event.getSender(), m);
assertTrue("maptype doesn't match", event.getType().equals(
MapType.getNormalMap()));