void (String expectedExceptionMessage, JUnitConfiguration configuration) { try { configuration.checkConfiguration(); } catch (RuntimeConfigurationException e) { assertEquals(expectedExceptionMessage, e.getLocalizedMessage()); return; } fail("ConfigurationException expected"); }