@Test
public void invokesInitializeMethodWithCustomLifecycleMethodStrategy() throws Exception {

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