### Question:
KernelLauncher implements EntryPoint, EntryPointRegistry { @Override @SuppressWarnings({"unchecked", "PMD.AvoidLiteralsInIfCondition"}) public void run(Map<ContextEntries, Object> ctx) { while (true) { synchronized (this) { try { val tasks = (List<EntryPoint>) ctx.get(ContextEntries.ENTRY_POINTS_TEMP); if (tasks.isEmpty()) { return; } if (tasks.size() == 1) { if (tasks.get(0) == this) { return; } } wait(100); } catch (InterruptedException e) { log.log(Level.INFO, "interrupted"); } } } }  static KernelLauncher getInstance(); @Override Logger getLogger(); @Override void stop(); @Override @SuppressWarnings({"unchecked", "PMD.AvoidLiteralsInIfCondition"}) void run(Map<ContextEntries, Object> ctx); @Override void start(); @Override void initialize(Map<ContextEntries, Object> context); @Override @SuppressWarnings("PMD.NullAssignment") void finalize(Map<ContextEntries, Object> context); @Override KernelOptions getOptions(); @Override @SuppressWarnings("unchecked") T getService(Class<T> type); @Override boolean exports(Class<T> type); static void main(String[] args); static Map<ContextEntries, Object> doLaunch(String[] args); @Override @SuppressWarnings("unchecked") List<EntryPoint> getEntryPoints(); @Override List<EntryPoint> getEntryPoints(Predicate<EntryPoint> filter); @Override int getPriority();  }### Answer:
@Test void ensureMockEntryPointRunIsCalledExactlyOnce() { val mep = runAndGetMock(); Mockito.verify(mep.getMock(), Mockito.times(1)).run(mep.getContext()); }