I simply moved the lock two lines up and the test passed.
*/
public void testImplicitLocking() throws Exception
{
OjbConfiguration conf = (OjbConfiguration)OjbConfigurator.getInstance().getConfigurationFor(null);
boolean useImplicitLocking = conf.useImplicitLocking();
boolean restore = false;
// prepare test case
try
{