### Question:
TSModuleHandler { NameSpaceMappingStrategy convertNameSpaceMappingStrategy(AnnotationValue value) { return (value != null && value.getValue() != null && Arrays.stream(NameSpaceMappingStrategy.values()).anyMatch(x -> x.name().equals(value.getValue().toString()))) ? NameSpaceMappingStrategy.valueOf(value.getValue().toString()) :null; } TSModuleHandler(ProcessingEnvironment processingEnv); Set<TSModuleInfo> process(Set<? extends Element> annotatedElements);  }### Answer:
@Test void testStrategy_invalid() { assertNull(testee.convertNameSpaceMappingStrategy(null)); assertNull(testee.convertNameSpaceMappingStrategy(this.annotationValue)); when(this.annotationValue.getValue()).thenReturn("XXX"); assertNull(testee.convertNameSpaceMappingStrategy(this.annotationValue)); }
@Test void testStrategy_valid() { when(this.annotationValue.getValue()).thenReturn(NameSpaceMappingStrategy.MANUAL.name()); assertEquals(NameSpaceMappingStrategy.MANUAL, testee.convertNameSpaceMappingStrategy(this.annotationValue)); }