Problem problem = new Problem("VGER", new Location(new DescriptiveResource("here")),
null, new IllegalArgumentException());
MockControl mockLog = MockControl.createControl(Log.class);
Log log = (Log) mockLog.getMock();
log.warn(null, rootCause);
mockLog.setMatcher(new AbstractMatcher() {
public boolean matches(Object[] expected, Object[] actual) {
Assert.assertEquals(2, actual.length);
Assert.assertTrue(actual[1] instanceof IllegalArgumentException);
return true;