@Test
public void testExtractArgumentsWithException() {

    Exception ex = new IllegalArgumentException();
    Object[] values = LoggingUtil.extractArguments(TestFields.class, "log message {AAA} {BBB} {CCC}", ex, VALUES_FUNC);
    
    Object[] expectedArgs = Stream.concat(Arrays.stream(ARGS), Stream.of(ex)).toArray(Object[]::new);
    
    assertThat(values).containsExactly(expectedArgs);
}