AuditCapabilityBooter extends CapabilityBooterSupport { @Override protected void boot(final CapabilityRegistry registry) throws Exception { maybeAddCapability(registry, AuditCapability.TYPE, true, null, null); }    }
@Test public void testBoot_isEnabled() throws Exception { when(capabilityRegistry.get(any(CapabilityReferenceFilter.class))).thenReturn(null); underTest.boot(capabilityRegistry); verify(capabilityRegistry).add(eq(AuditCapability.TYPE), eq(true), any(), any()); }