### Question:
TSModuleHandler { String processModuleName(Element element, AnnotationValue annotationValue) { if (annotationValue.getValue() == null || annotationValue.getValue().toString().isEmpty() || !StringUtils.isPackageFriendly(annotationValue.getValue().toString())) { this.env.getMessager().printMessage(Diagnostic.Kind.ERROR, "The module name '" + annotationValue.getValue() + "' is not package name friendly", element); return "unknown"; } else return annotationValue.getValue().toString(); } TSModuleHandler(ProcessingEnvironment processingEnv); Set<TSModuleInfo> process(Set<? extends Element> annotatedElements);  }### Answer:
@Test void moduleNameHandling_null_empty() { assertEquals("unknown",testee.processModuleName(this.executableElement, this.annotationValue)); when(this.annotationValue.getValue()).thenReturn(""); assertEquals("unknown",testee.processModuleName(this.executableElement, this.annotationValue)); }
@Test void moduleNameHandling_null_not_package_friendly() { when(this.annotationValue.getValue()).thenReturn("-a"); assertEquals("unknown",testee.processModuleName(this.executableElement, this.annotationValue)); }