@Test 
public void testCheckClosed() throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, NoSuchMethodException{

	this.testClass.renewConnection();
	// call the method (should not throw an exception)
	Method method = this.testClass.getClass().getDeclaredMethod("checkClosed");
	method.setAccessible(true);
	method.invoke(this.testClass);
	// logically mark the connection as closed
	this.testClass.logicallyClosed.set(true);
	try{
		method.invoke(this.testClass);
		fail("Should have thrown an exception");
	} catch (Throwable t){
		// do nothing.
	}
}