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