@Test
public void testBootstrap() {
// Test Bootstrap capability by getting one from the sandbox
TelemetryDataTaxonomyComponent component = new TelemetryDataTaxonomyComponent();
component.getCapability(ComponentInitializer.class).setId("id");
Bootstrap capability = component.getCapability(Bootstrap.class);
// Should support the bootstrap capability
Assert.assertNotNull(capability);
// Is not a sandbox
Assert.assertFalse(capability.isSandbox());
// Is globally accessible (for all users)
Assert.assertTrue(capability.isGlobal());
// Appears near the bottom, but not at the bottom
Assert.assertEquals(capability.categoryIndex(), Integer.MAX_VALUE);
Assert.assertTrue(capability.componentIndex() < Integer.MAX_VALUE);
}