@Test
public void shouldExtractTargetTypeFromGenericDefinition() {

	Object targetType = new ComponentFactoryIntrospector().targetTypeForComponentFactory(MyFactory.class);
	assertEquals(NeedsCustomInstantiation.class, targetType);
}