### Question:
Exporter { public final String getId() { return this.getName().toLowerCase().replace(" ", "_"); }  abstract String getName(); abstract String getDescription(); abstract String getFormat(); byte[] generateAndEncodeB64(List<FunctionalityDTO> functionalities, Map<String,String> requiredInfos); boolean suitableFor(String exportName); final String getId(); List<ExportField> listRequiredFields();  }### Answer:
@Test public void getId_should_return_the_name_in_lowercase_and_replace_space_by_underscores() { String expected = TEST_STR.toLowerCase().replace(" ", "_"); String actual = this.sut.getId(); Assertions.assertThat(actual).isEqualTo(expected); }