@Test
public void should_determine_class_naming_strategy() throws Exception {
//When
when(configContext.getGlobalNamingStrategy()).thenReturn(NamingStrategy.LOWER_CASE);
final NamingStrategy classNamingStrategy = introspector.determineClassNamingStrategy(configContext, BeanWithNamingStrategy.class);
final NamingStrategy defaultNamingStrategy = introspector.determineClassNamingStrategy(configContext, CompleteBean.class);
//Then
assertThat(classNamingStrategy).isSameAs(NamingStrategy.SNAKE_CASE);
assertThat(defaultNamingStrategy).isSameAs(NamingStrategy.LOWER_CASE);
}