/**
* Tests that invalid plug-in values throw the appropriate exception
* type.
*/
public void testInvalidPlugins() {
OpenJPAConfiguration config = new OpenJPAConfigurationImpl();
config.setLog("log3j");
try {
config.getLogFactory().getLog("Foo");
fail("getting the Foo log should have failed");
} catch (RuntimeException re) {
// as expected ... make sure the exception suggests the
// name "log4j" in the message
assertTrue(-1 != re.getMessage().indexOf("log4j"));