### Question:
DefaultJavaTypeConverter implements JavaTypeConverter { @Override public Optional<TSType> convertJavaType(TypeElement e) { LOG.log(Level.FINEST, () -> String.format("DJTC converting java type %s", e == null ? "null" : e.toString())); return handleJavaType(e); } DefaultJavaTypeConverter(TSProcessingInfo processingInfo); @Override Optional<TSType> convertJavaType(TypeElement e);  }### Answer:
@Test void convertJavaType_called_null() { DefaultJavaTypeConverter testee = new DefaultJavaTypeConverter(this.param); assertEquals(Optional.empty(), testee.convertJavaType(null)); }
@Test @DisplayName("check if an invalid Element is converted to an Optional.empty()") void convertWrongKindReturnsEmpty() { DefaultJavaTypeConverter teste = new DefaultJavaTypeConverter(this.param); when(this.elementMock.getKind()).thenReturn(ElementKind.EXCEPTION_PARAMETER); assertEquals(Optional.empty(), teste.convertJavaType(this.elementMock)); }