@Test
public void testDeriveArgumentsWithException() {

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