@Test(expected = BeanDefinitionParsingException.class) public void testError() throws Exception { FailFastProblemReporter reporter = new FailFastProblemReporter(); reporter.error( new Problem( "VGER", new Location(new DescriptiveResource("here")), null, new IllegalArgumentException())); }