@Test
public void invokesDestroyMethodWithCustomLifecycleMethodStrategy() throws Exception {

    LifecycleMethodStrategy lifecycleMethodStrategy = mock(LifecycleMethodStrategy.class);
    Resource instance  = new Resource();
    LifecycleComponent lifecycleComponent = new LifecycleComponent(instance, lifecycleMethodStrategy);
    lifecycleComponent.destroy();
    verify(lifecycleMethodStrategy).invokeDestroyMethods(instance);
}