@Test
public void invokesDestroyMethodWithDefaultLifecycleMethodStrategy() throws Exception {

    Resource instance  = new Resource();
    LifecycleComponent lifecycleComponent = new LifecycleComponent(instance);
    lifecycleComponent.destroy();
    assertEquals(1, instance.destroyVisitsCounter.get());
}