### Question:
TSModuleHandler { NameMappingStrategy convertNameMappingStrategy(AnnotationValue value) { return (value != null && value.getValue() != null && Arrays.stream(NameMappingStrategy.values()).anyMatch(x -> x.name().equals(value.getValue().toString()))) ? NameMappingStrategy.valueOf(value.getValue().toString()) :null; } TSModuleHandler(ProcessingEnvironment processingEnv); Set<TSModuleInfo> process(Set<? extends Element> annotatedElements);  }### Answer:
@Test @DisplayName("check invalid name mapper strategy") void test_namemapper_Strategy_invalid() { assertNull(testee.convertNameMappingStrategy(null)); assertNull(testee.convertNameMappingStrategy(this.annotationValue)); when(this.annotationValue.getValue()).thenReturn("XXX"); assertNull(testee.convertNameMappingStrategy(this.annotationValue)); }
@Test @DisplayName("check valid name mapper strategy") void testValidNameStrategy_valid() { when(this.annotationValue.getValue()).thenReturn(NameMappingStrategy.SIMPLE.name()); assertEquals(NameMappingStrategy.SIMPLE, testee.convertNameMappingStrategy(this.annotationValue)); }