@Test
public void testLogWithLocationWithBadFormat() {

  final LocationAwareLogger log = mock(LocationAwareLogger.class);
  final Slf4jLogTarget target = new Slf4jLogTarget(log);
  final Exception exception = new Exception("test exception");
  target.log(LogLevel.TRACE, null, "format %d", 1, new Object[] {3.14}, exception, Zlg.entrypoint);
  
  verify(log).log(isNull(), eq(Zlg.entrypoint), eq(LocationAwareLogger.TRACE_INT), contains("WARNING -"), 
                  eq(new Object[0]), eq(exception));
}