### Question:
EventRepository { public void requestAddEvent(int groupId, String name, Date start, Date end, Location l) { Context ctx = TreffPunkt.getAppContext(); SharedPreferences pref = PreferenceManager .getDefaultSharedPreferences(ctx); int creator = pref.getInt(ctx.getString(R.string.key_userId), -1); encoder.createEvent(groupId, name, creator, start, end, l); } EventRepository(EventDao eventDao, RequestEncoder encoder,
                           Handler backgroundHandler); LiveData<PagedList<Event>> getEvents(); LiveData<PagedList<Event>> getEventsFromGroups(Set<Integer> idSet); LiveData<PagedList<Event>> getEventsFromGroup(int groupId); LiveData<Event> getEventLiveData(int eventId); Event getEvent(int eventId); void addEvent(Event event); void updateEvent(Event newEvent); void deleteEvent(int eventId); void requestAddEvent(int groupId, String name, Date start,
                                Date end, Location l); void requestDeleteEvent(int groupId, int eventId); void requestEditEvent(int eventId, int groupId, String title, Date
                                 start, Date end, Location l); void deleteAllEvents(); void requestRefresh();  }### Answer:
@Ignore @Test public void requestAddEventTest() { testEventRepository.requestAddEvent(mockEvent.getGroupId(), mockEvent .getName(), mockEvent.getStart(), mockEvent.getEnd(), mockEvent.getLocation()); }