### Question:
KernelLauncher implements EntryPoint, EntryPointRegistry { @Override @SuppressWarnings("unchecked") public List<EntryPoint> getEntryPoints() { synchronized (KernelLauncher.class) { return (List<EntryPoint>) context.get(ContextEntries.ENTRY_POINTS); } }  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 ensureRegistryContainsCorrectEntryPointCount() { val ctx = runAndGetMock().getContext(); val registry = (EntryPointRegistry) ctx.get(EntryPoint.ContextEntries.ENTRY_POINT_REGISTRY); Assertions.assertEquals(5, registry.getEntryPoints().size(), "must contain 2 entrypoints"); }