### Question:
AnalyzeCommand { static String generateFileName(@Nonnull final String prefix, @Nonnull final LocalDateTime dt, @Nonnull final String extension) { return prefix + "_" + dt.format(DateTimeFormatter.ofPattern("yyyyMMdd_HHmmss")) + "." + extension; }  static void main(String[] args);  }### Answer:
@Test public void testGenerateFileName() { assertThat(AnalyzeCommand.generateFileName("helloWorld", LocalDateTime.of(2020, 8, 27, 15, 33, 56, 987_000_000), "fooBar")) .isEqualTo("helloWorld_20200827_153356.fooBar"); }