### Question:
SpotifySpeech { @Intent() public String setDeviceId(Map<String, EntityData> entites) { return this.deviceLogic.setDevice(entites.get("deviceid").getNumber()); }  @Intent() String getDevices(Map<String, EntityData> entites); @Intent() Response getCurrentSong(Map<String, EntityData> entites); @Intent() String getPlaylists(Map<String, EntityData> entites); @Intent() String playSomething(Map<String, EntityData> entites); @Intent() String control(Map<String, EntityData> entites); @Intent() String volume(Map<String, EntityData> entites); @Intent() String volumePercent(Map<String, EntityData> entites); @Intent() String setDeviceId(Map<String, EntityData> entites); @Intent() String setDeviceName(Map<String, EntityData> entites); @Intent() String playPlaylistId(Map<String, EntityData> entites); @Intent() Response searchASong(Map<String, EntityData> entites); @EntityProvider("devicename") List<String> getDeviceNames();  }### Answer:
@Test void testSetDeviceId() { when(this.entityData.getNumber()).thenReturn(1); Map<String, EntityData> map = new HashMap<>(); map.put("deviceid", this.entityData); this.speech.setDeviceId(map); verify(this.deviceLogic).setDevice(1); }