@Test public void should_handle_event_maps() { // given TestDummy device = new TestDummy("lampe"); device.getSetList().parse("on off"); device.setEventmap("on:hallo"); RoomDeviceList deviceList = new RoomDeviceList("").addDevice(device, context); doReturn(deviceList) .when(roomListService) .getAllRoomsDeviceList(Optional.<String>absent(), context); // when Optional<VoiceResult> result = service.resultFor("schalte lampe hallo", context); // then assertThat(result).contains(new VoiceResult.Success("lampe", "on")); }