Project project = ProjectPlugin.getPlugin().getProjectRegistry()
.getDefaultProject();
CreateMapCommand cmCommand
= new CreateMapCommand("MyMap", (List<IGeoResource>) service.resources(null), project); //$NON-NLS-1$
project.sendSync(cmCommand);
Map map = (Map) cmCommand.getCreatedMap();
assertNotNull(map);
assertEquals(map.getProject(),project);
assertEquals(map.getName(), "MyMap"); //$NON-NLS-1$