DronePoint<MockDrone> invalidDronePoint = new DronePointImpl<MockDrone>(MockDrone.class,
DronePoint.Lifecycle.CLASS, AnnotationMocks.drone());
DronePoint<MockDrone> dronePoint = new DronePointImpl<MockDrone>(MockDrone.class, DronePoint.Lifecycle.CLASS,
AnnotationMocks.drone(), AnnotationMocks.differentQualifier());
MockDroneConfiguration configuration = context.get(dronePoint).getConfigurationAs(MockDroneConfiguration.class);
Assert.assertFalse("There is no MockDroneConfiguration with @Default qualifier",
context.get(invalidDronePoint).hasConfiguration());
Assert.assertNotNull("MockDroneConfiguration is stored with @Different qualifier", configuration);
Assert.assertEquals("MockDrone was configured from @Different configuration", DIFFERENT_FIELD,
configuration.getField());
getManager().getContext(ClassContext.class).deactivate();
getManager().getContext(ClassContext.class).destroy(EnrichedClass.class);
}