### Question:
EnsureOakIndexManagerImpl extends AnnotatedStandardMBean implements EnsureOakIndexManager, EnsureOakIndexManagerMBean { @Override public final int ensureAll(boolean force) { log.info("Applying all un-applied ensure index definitions"); int count = 0; for (AppliableEnsureOakIndex index : this.ensureIndexes) { if (!index.isApplied() || force) { index.apply(force); count++; log.debug("Started applying index definition on [ {} ]", index); } else { log.debug("Skipping... [ {} ] is already applied.", index); } } return count; } EnsureOakIndexManagerImpl(); @Override final int ensureAll(boolean force); @Override final int ensure(final boolean force,
                            final String ensureDefinitionPath); @Override @SuppressWarnings("squid:S1192") final TabularData getEnsureOakIndexes(); @Property(label = "Additional ignore properties",
            description = "Property names that are to be ignored when determining if an oak index has changed, as well as what properties should be removed/updated.",
            cardinality = Integer.MAX_VALUE,
            value = {})
    static final String PROP_ADDITIONAL_IGNORE_PROPERTIES; }### Answer:
@Test public void testNoEoiRegistered() throws NotCompliantMBeanException { EnsureOakIndexManagerImpl impl = new EnsureOakIndexManagerImpl(); context.registerInjectActivateService(impl,ensureOakIndexManagerProperties); assertEquals(0,impl.ensureAll(true)); }