### Question:
ApplicationCopyEventRepositoryImpl implements ApplicationCopyEventRepository, ServiceLifecycle { @Override public Map<UUID, List<ApplicationCopyEvent>> listByAppInstanceId(UUID appInstanceId) { return nqs.getMapOfList( SQL_SELECT_EVENTS_BY_APP_INSTANCE_ID, new UuidNativeQueryConverter("appCopyId"), this::convertRow, Collections.singletonList(appInstanceId) ); } ApplicationCopyEventRepositoryImpl(DataSource dataSource);  ApplicationCopyEventRepositoryImpl(); @Override UUID subscribe(Consumer<ApplicationCopyEvent> consumer); @Override void unSubscribe(UUID subscriberId); @Override List<ApplicationCopyEvent> listOrderedEvents(UUID copyId); @Override Map<UUID, List<ApplicationCopyEvent>> listByAppInstanceId(UUID appInstanceId); @Override ApplicationCopyEvent store(ApplicationCopyEvent appCopyEvent); @Override Collection<ApplicationCopyEvent> store(Collection<ApplicationCopyEvent> appCopyEvents); @Override void init(Context context); @Override void shutDown();  }### Answer:
@Test public void testNonExistentInstanceId() { UUID instId = UUID.randomUUID(); Map<UUID, List<ApplicationCopyEvent>> events = appCopyEventRepo.listByAppInstanceId(instId); Assert.assertEquals(0, events.keySet().size()); }