OpenJPAConfiguration config = new OpenJPAConfigurationImpl();
// track the messages
BufferedLogFactory log = new BufferedLogFactory();
config.setLogFactory(log);
config.fromProperties(props);
// make sure we got a warning that contains the string with the
// bad property name and a hint for the valid property name.
log.assertLogMessage("*\"openjpa.MaxxFetchDepth\"*");
log.assertLogMessage("*\"openjpa.MaxFetchDepth\"*");