### Question:
DeclTypeHelper { public static Optional<TypeElement> declaredTypeToTypeElement(TypeMirror typeMirror) { return typeToDeclType(typeMirror).flatMap(DeclTypeHelper::declTypeToTypeElement); }  static Optional<TypeElement> declaredTypeToTypeElement(TypeMirror typeMirror);  }### Answer:
@Test void check_Absent_in_declaredTypeToTypeElement() { DeclTypeHelper declTypeHelper = new DeclTypeHelper(); DeclaredType mockedType = mock(DeclaredType.class); assertEquals(declaredTypeToTypeElement(null), Optional.empty()); assertEquals(declaredTypeToTypeElement(mockedType), Optional.empty()); }